Message227344
| Author |
ncoghlan |
| Recipients |
Arfrever, ezio.melotti, lemburg, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner |
| Date |
2014年09月23日.11:12:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1411470724.13.0.309067671367.issue18814@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|