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 83cb5f8..b4d4e40 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