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 Arfrever, ezio.melotti, lemburg, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner
Date 2014-09-23.15:06:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
And indeed my use case for this has instances of both cases: originally decoded using ASCII and the non-ascii bytes must end up as replaced characters, and originally decoded using utf-8.

I'm also not sure that it is worth adding this.  If you know what you are doing the solution is obvious, and if you don't know what you are doing you shouldn't be using surrogateescape in the first place :)

Now, if there were or there is intended to be a more efficient C level implementation, that answer might be different.
Date User Action Args
2014-09-23 15:06:57r.david.murraysetrecipients: + r.david.murray, lemburg, ncoghlan, pitrou, vstinner, ezio.melotti, Arfrever, serhiy.storchaka
2014-09-23 15:06:57r.david.murraysetmessageid: <>
2014-09-23 15:06:57r.david.murraylinkissue18814 messages
2014-09-23 15:06:57r.david.murraycreate