servicemp3.cpp: more simple/flexible streaming detection
[enigma2.git] / lib / python / Tools / RedirectOutput.py
index 83cb5f8c50e6931992523a91cae8b8ef79a27bc0..d03a1d97cc802c345a835b16949bc1da1195ec2d 100644 (file)
@@ -3,8 +3,10 @@ from enigma import ePythonOutput
 
 class EnigmaOutput:
        def write(self, data):
+               if isinstance(data, unicode):
+                       data = data.encode("UTF-8")
                ePythonOutput(data)
-       
+
        def flush():
                pass