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 martin.panter
Recipients Patrik Dufresne, ezio.melotti, lars.gustaebel, martin.panter, r.david.murray, vstinner
Date 2016-01-03.00:16:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451780195.28.0.412953763193.issue25997@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like surrogate-escaped bytes should be supported thanks to Issue 8390, although this is not so useful if you use the “pax” format (which always uses UTF-8 internally).

To generate a surrogate-escaped string, you can “decode” it with the following error handler:

>>> b"non-as\xA9ii".decode("ascii", "surrogateescape")
'non-as\udca9ii'
History
Date User Action Args
2016-01-03 00:16:35martin.pantersetrecipients: + martin.panter, lars.gustaebel, vstinner, ezio.melotti, r.david.murray, Patrik Dufresne
2016-01-03 00:16:35martin.pantersetmessageid: <1451780195.28.0.412953763193.issue25997@psf.upfronthosting.co.za>
2016-01-03 00:16:35martin.panterlinkissue25997 messages
2016-01-03 00:16:35martin.pantercreate