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.

作者 r.david.murray
收信人 Arfrever, ezio.melotti, lemburg, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner
日期 2014-09-23.15:06:57
SpamBayes Score -1.0
Marked as misclassified
Message-id <1411484817.56.0.935915060414.issue18814@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2014-09-23 15:06:57r.david.murray修改recipients: + r.david.murray, lemburg, ncoghlan, pitrou, vstinner, ezio.melotti, Arfrever, serhiy.storchaka
2014-09-23 15:06:57r.david.murray修改messageid: <1411484817.56.0.935915060414.issue18814@psf.upfronthosting.co.za>
2014-09-23 15:06:57r.david.murray链接issue18814 messages
2014-09-23 15:06:57r.david.murray创建