aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Tools/RedirectOutput.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/Tools/RedirectOutput.py b/lib/python/Tools/RedirectOutput.py
index 83cb5f8c..b4d4e401 100644
--- a/lib/python/Tools/RedirectOutput.py
+++ b/lib/python/Tools/RedirectOutput.py
@@ -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