Nick Coghlan added the comment:
Note I would also be OK with "convert_surrogates", as that's the term that
appears in the relevant error message:
>>> b'\xe9'.decode('ascii', 'surrogateescape').encode()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'utf-8' codec can't encode character '\udce9' in position
0: surrogates not allowed
----------
_______________________________________
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