STINNER Victor <victor.stin...@haypocalc.com> added the comment:

> I consider that it is useless to set the ANSI code page to 65001 in a console

I did more tests on the Windows console, focused on output, see:
http://bugs.python.org/issue1602#msg145898

I was wrong, it *is* useful to change the code page to 65001. Even if we have 
fully Unicode compliant sys.stdout and sys.stderr, setting the code page to 
CP_UTF8 (65001) does still improve Unicode support in some cases:

 - if the output (stdout and/or stderr) is redirected
 - if you encode Unicode to the console code page to use directly 
sys.stdout.buffer and sys.stderr.buffer

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13216>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to