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.

作者 ncoghlan
收信人 Arfrever, ezio.melotti, lemburg, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner
日期 2014-09-23.11:12:04
SpamBayes Score -1.0
Marked as misclassified
Message-id <1411470724.13.0.309067671367.issue18814@psf.upfronthosting.co.za>
In-reply-to
内容
Draft docstring for that version

    def convert_surrogates(data, errors='replace'):
        """Convert escaped surrogates by applying a different error handler

        Uses the "replace" error handler by default, but any input
        error handler may be specified.
        """
        return data.encode('utf-8', 'surrogateescape').decode('utf-8', errors)
历史
日期 用户 动作 参数
2014-09-23 11:12:04ncoghlan修改recipients: + ncoghlan, lemburg, pitrou, vstinner, ezio.melotti, Arfrever, r.david.murray, serhiy.storchaka
2014-09-23 11:12:04ncoghlan修改messageid: <1411470724.13.0.309067671367.issue18814@psf.upfronthosting.co.za>
2014-09-23 11:12:04ncoghlan链接issue18814 messages
2014-09-23 11:12:04ncoghlan创建