[issue8092] utf8, backslashreplace and surrogates
STINNER Victor
report at bugs.python.org
Tue Mar 9 00:21:07 CET 2010
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
utf8 encoder doesn't work in backslashreplace error handler:
>>> "\uDC80".encode("utf8", "backslashreplace")
TypeError: error handler should have returned bytes
----------
components: Unicode
messages: 100678
nosy: haypo
severity: normal
status: open
title: utf8, backslashreplace and surrogates
versions: Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8092>
_______________________________________
More information about the Python-bugs-list
mailing list