[issue37111] Logging - Inconsistent behaviour when handling unicode
SilentGhost
report at bugs.python.org
Fri May 31 06:27:59 EDT 2019
SilentGhost <ghost.adh at runbox.com> added the comment:
> Given that the file created by the logger is utf-8
I don't think this is true. Default file handler created using filename argument is opened with encoding None (meaning that it relies on system-default encoding, which is on Windows is not utf-8). And it also explains why your work-around works, provided you've opened file handler with explicit utf-8 encoding.
----------
nosy: +SilentGhost, vinay.sajip
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37111>
_______________________________________
More information about the Python-bugs-list
mailing list