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, georg.brandl, vstinner, yaoyu
Date 2011-05-12.15:07:37
SpamBayes Score 0.004987706
Marked as misclassified No
Message-id <1305212858.59.0.672613125471.issue12048@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, right.

Note: the encoding looks to be GBK, not CP932:

>>> '\u590d\u4ef6'.encode('gbk')
b'\xb8\xb4\xbc\xfe'
>>> '\u590d\u4ef6'.encode('gbk').decode('cp437')
'╕┤╝■'
>>> '\u590d\u4ef6'.encode('cp932')
...
UnicodeEncodeError: 'cp932' codec can't encode character '\u590d' ...
History
Date User Action Args
2011-05-12 15:07:38vstinnersetrecipients: + vstinner, georg.brandl, amaury.forgeotdarc, yaoyu
2011-05-12 15:07:38vstinnersetmessageid: <1305212858.59.0.672613125471.issue12048@psf.upfronthosting.co.za>
2011-05-12 15:07:37vstinnerlinkissue12048 messages
2011-05-12 15:07:37vstinnercreate