Commits

Ezio Melotti  committed 9c66668 Draft

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

  • Participants
  • Parent commits 0799fd1
  • Branches 3.2

Comments (0)

Files changed (1)

File Doc/howto/unicode.rst

         ...
     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'