Message227344
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) |
|
Date |
User |
Action |
Args |
2014-09-23 11:12:04 | ncoghlan | set | recipients:
+ ncoghlan, lemburg, pitrou, vstinner, ezio.melotti, Arfrever, r.david.murray, serhiy.storchaka |
2014-09-23 11:12:04 | ncoghlan | set | messageid: <1411470724.13.0.309067671367.issue18814@psf.upfronthosting.co.za> |
2014-09-23 11:12:04 | ncoghlan | link | issue18814 messages |
2014-09-23 11:12:04 | ncoghlan | create | |
|