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 eryksun
Recipients AndreyTomsk, SilentGhost, eryksun, ezio.melotti, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2016-09-22.10:33:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474540433.22.0.62437837776.issue28246@psf.upfronthosting.co.za>
In-reply-to
Content
Codepage 1251 is a single-byte encoding and a superset of ASCII (i.e. ordinals 0-127). UTF-8 is also a superset of ASCII, so there's no problem as long as the encoded text is strictly ASCII. But decoding non-ASCII UTF-8 as codepage 1251 produces nonsense, otherwise known as mojibake. It happens that codepage 1251 maps every one of the 256 possible byte values, except for 0x98 (152). The exception can't be made any clearer.
History
Date User Action Args
2016-09-22 10:33:53eryksunsetrecipients: + eryksun, paul.moore, vstinner, tim.golden, ezio.melotti, SilentGhost, zach.ware, steve.dower, AndreyTomsk
2016-09-22 10:33:53eryksunsetmessageid: <1474540433.22.0.62437837776.issue28246@psf.upfronthosting.co.za>
2016-09-22 10:33:53eryksunlinkissue28246 messages
2016-09-22 10:33:53eryksuncreate