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.

作者 vstinner
收信人 amaury.forgeotdarc, loewis, ocean-city, vstinner
日期 2011-06-10.13:48:19
SpamBayes Score 0.00028997785
Marked as misclassified
Message-id <1307713700.45.0.513641696145.issue12281@psf.upfronthosting.co.za>
In-reply-to
内容
Decode examples, ANSI=cp932:

>>> codecs.code_page_decode(1252, b'\x80')
('\u20ac', 1)
>>> codecs.code_page_decode(932, b'\x82')
...
UnicodeDecodeError: 'mbcs' codec can't decode bytes in position 0--1: No mapping for the Unicode character exists in the target code page.
>>> codecs.code_page_decode(932, b'\x82', 'replace')
('・', 1)
>>> codecs.code_page_decode(932, b'\x82', 'ignore')
('', 0)

Oh, the encoding name is wrong in the decoding errors.
历史
日期 用户 动作 参数
2011-06-10 13:48:20vstinner修改recipients: + vstinner, loewis, amaury.forgeotdarc, ocean-city
2011-06-10 13:48:20vstinner修改messageid: <1307713700.45.0.513641696145.issue12281@psf.upfronthosting.co.za>
2011-06-10 13:48:19vstinner链接issue12281 messages
2011-06-10 13:48:19vstinner创建