This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients amaury.forgeotdarc, loewis, vstinner
Date 2011-10-19.11:58:41
SpamBayes Score 0.00054451276
Marked as misclassified No
Message-id <1319025522.47.0.796194637014.issue13216@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
History
Date User Action Args
2011-10-19 11:58:42vstinnersetrecipients: + vstinner, loewis, amaury.forgeotdarc
2011-10-19 11:58:42vstinnersetmessageid: <1319025522.47.0.796194637014.issue13216@psf.upfronthosting.co.za>
2011-10-19 11:58:41vstinnerlinkissue13216 messages
2011-10-19 11:58:41vstinnercreate