Message227343
Le 23/09/2014 12:57, Nick Coghlan a écrit :
> 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)
'utf-8' is hardcoded? |
|
Date |
User |
Action |
Args |
2014-09-23 11:04:47 | pitrou | set | recipients:
+ pitrou, lemburg, ncoghlan, vstinner, ezio.melotti, Arfrever, r.david.murray, serhiy.storchaka |
2014-09-23 11:04:47 | pitrou | link | issue18814 messages |
2014-09-23 11:04:46 | pitrou | create | |
|