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-08.12:59:37
SpamBayes Score 0.003521174
Marked as misclassified
Message-id <1307537978.29.0.656999181742.issue12281@psf.upfronthosting.co.za>
In-reply-to
内容
> Example with ANSI=cp932 (on Windows Seven):
>  - b'abc\xffdef'.decode('mbcs', 'replace') gives 'abc\uf8f3def'
>  - b'abc\xffdef'.decode('mbcs', 'ignore') gives 'abcdef'

Oh, and b'\xff'.decode('mbcs', 'surrogateescape') gives '\udcff' as expected. At least for surrogateescape, it would be nice that mbcs supports any error handler on encoding.
历史
日期 用户 动作 参数
2011-06-08 12:59:38vstinner修改recipients: + vstinner, loewis, amaury.forgeotdarc, ocean-city
2011-06-08 12:59:38vstinner修改messageid: <1307537978.29.0.656999181742.issue12281@psf.upfronthosting.co.za>
2011-06-08 12:59:37vstinner链接issue12281 messages
2011-06-08 12:59:37vstinner创建