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 r.david.murray
Recipients Sworddragon, ezio.melotti, lemburg, ncoghlan, r.david.murray, vstinner
Date 2014-04-22.21:13:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398201214.63.0.957843269733.issue21331@psf.upfronthosting.co.za>
In-reply-to
Content
No.  x.encode('unicode-escape').decode('unicode-escape') should return the same result, and it does.

The bug, I think, is that bytes.decode('unicode-escape') is not objecting to the non-ascii characters.  It appears to be treating them as latin1, and that strikes me as broken.
History
Date User Action Args
2014-04-22 21:13:34r.david.murraysetrecipients: + r.david.murray, lemburg, ncoghlan, vstinner, ezio.melotti, Sworddragon
2014-04-22 21:13:34r.david.murraysetmessageid: <1398201214.63.0.957843269733.issue21331@psf.upfronthosting.co.za>
2014-04-22 21:13:34r.david.murraylinkissue21331 messages
2014-04-22 21:13:34r.david.murraycreate