[issue13232] Logging: Unicode Error
Thomas Guettler
report at bugs.python.org
Fri Oct 21 08:42:24 CEST 2011
Thomas Guettler <guettli at thomas-guettler.de> added the comment:
I attached a testcase (unicodedecodeerror-in-logging.py). If the filesystemencoding is UTF-8 and the source code is encoded in latin1, then the logging fails. It happens because there is a German umlaut in the comment behind 1/0.
I added 'replace' to the decode() in __init__.py and the it works. The German umlaut gets displayed as inverted question mark. But this is better than no logging message.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13232>
_______________________________________
More information about the Python-bugs-list
mailing list