#15949, #15899: use \ufffd instead of ?.

This commit is contained in:
Ezio Melotti 2012-09-23 15:55:14 +03:00
parent b1d0e5b11e
commit 20b8d992b0
1 changed files with 2 additions and 2 deletions

View File

@ -262,8 +262,8 @@ Unicode result). The following examples show the differences::
...
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0:
invalid start byte
>>> b'\x80abc'.decode("utf-8", "replace") #doctest: +SKIP
'?abc'
>>> b'\x80abc'.decode("utf-8", "replace")
'\ufffdabc'
>>> b'\x80abc'.decode("utf-8", "ignore")
'abc'