Message145901
| 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:42 | vstinner | set | recipients:
+ vstinner, loewis, amaury.forgeotdarc |
| 2011年10月19日 11:58:42 | vstinner | set | messageid: <1319025522.47.0.796194637014.issue13216@psf.upfronthosting.co.za> |
| 2011年10月19日 11:58:41 | vstinner | link | issue13216 messages |
| 2011年10月19日 11:58:41 | vstinner | create |
|