summaryrefslogtreecommitdiffstats
path: root/Doc/howto/unicode.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-09-23 12:55:14 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-09-23 12:55:14 (GMT)
commit20b8d992b008672d52a84c8d35992033ccfc9d84 (patch)
treeba65a38ab73c796d807d9c78e9d7a7161c4aa5b0 /Doc/howto/unicode.rst
parentb1d0e5b11eac1ed5ae3d41bf952a3f68ad35f668 (diff)
downloadcpython-20b8d992b008672d52a84c8d35992033ccfc9d84.zip
cpython-20b8d992b008672d52a84c8d35992033ccfc9d84.tar.gz
cpython-20b8d992b008672d52a84c8d35992033ccfc9d84.tar.bz2
#15949, #15899: use \ufffd instead of ?.
Diffstat (limited to 'Doc/howto/unicode.rst')
-rw-r--r--Doc/howto/unicode.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst
index ea83d29..f9eeae4 100644
--- a/Doc/howto/unicode.rst
+++ b/Doc/howto/unicode.rst
@@ -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'