diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-02-13 20:40:51 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-02-13 20:40:51 +0000 |
| commit | 9b31d0bf9be2d677fb5d82d5e9faad64167abf9d (patch) | |
| tree | e1ac033ffef038f24a0a09a90ce3f1e4c7c1c524 /lib/python/Tools | |
| parent | 49052eeadcd62b9fda6be660c490d04577b6eabe (diff) | |
| download | enigma2-9b31d0bf9be2d677fb5d82d5e9faad64167abf9d.tar.gz enigma2-9b31d0bf9be2d677fb5d82d5e9faad64167abf9d.zip | |
encode unicode strings as UTF8 for console output
Diffstat (limited to 'lib/python/Tools')
| -rw-r--r-- | lib/python/Tools/RedirectOutput.py | 4 |
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 |
