keep selected event when modifying sort order (Moritz Venn)
[enigma2.git] / lib / python / Tools / RedirectOutput.py
index 83cb5f8c50e6931992523a91cae8b8ef79a27bc0..b4d4e401429ed46fa081a27cd8f605079a277a13 100644 (file)
@@ -3,8 +3,10 @@ from enigma import ePythonOutput
 
 class EnigmaOutput:
        def write(self, data):
 
 class EnigmaOutput:
        def write(self, data):
+               if type(data) is unicode:
+                       data = data.encode("UTF-8")
                ePythonOutput(data)
                ePythonOutput(data)
-       
+
        def flush():
                pass
 
        def flush():
                pass