Message227341
The function definition again, this time with a draft docstring:
def convert_surrogateescape(data, errors='replace'):
"""Convert escaped raw bytes 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 10:57:54 | ncoghlan | set | recipients:
+ ncoghlan, lemburg, pitrou, vstinner, ezio.melotti, Arfrever, r.david.murray, serhiy.storchaka |
2014-09-23 10:57:54 | ncoghlan | set | messageid: <1411469874.84.0.592893563163.issue18814@psf.upfronthosting.co.za> |
2014-09-23 10:57:54 | ncoghlan | link | issue18814 messages |
2014-09-23 10:57:54 | ncoghlan | create | |
|