encode unicode strings as UTF8 for console output
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 13 Feb 2006 20:40:51 +0000 (20:40 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 13 Feb 2006 20:40:51 +0000 (20:40 +0000)
lib/python/Tools/RedirectOutput.py

index 83cb5f8c50e6931992523a91cae8b8ef79a27bc0..b4d4e401429ed46fa081a27cd8f605079a277a13 100644 (file)
@@ -3,8 +3,10 @@ from enigma import ePythonOutput
 
 class EnigmaOutput:
        def write(self, data):
+               if type(data) is unicode:
+                       data = data.encode("UTF-8")
                ePythonOutput(data)
-       
+
        def flush():
                pass