Antoine Pitrou added the comment:
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?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18814>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com