From: Ezio Melotti Date: Sun, 23 Sep 2012 12:55:14 +0000 (+0300) Subject: #15949, #15899: use \ufffd instead of ?. X-Git-Tag: v3.2.4rc1~506 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20b8d992b008672d52a84c8d35992033ccfc9d84;p=thirdparty%2FPython%2Fcpython.git #15949, #15899: use \ufffd instead of ?. --- diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst index ea83d29199ab..f9eeae4c027e 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'