]> granicus.if.org Git - python/commitdiff
#15949, #15899: use \ufffd instead of ?.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 23 Sep 2012 12:55:14 +0000 (15:55 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 23 Sep 2012 12:55:14 +0000 (15:55 +0300)
Doc/howto/unicode.rst

index ea83d29199abed8c01c9755ceed62b6271af9541..f9eeae4c027e538b68c61d47cd08dc9359e91216 100644 (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'