[Python-checkins] cpython (3.2): #15949, #15899: use \ufffd instead of ?.

ezio.melotti python-checkins at python.org
Sun Sep 23 15:03:44 CEST 2012


http://hg.python.org/cpython/rev/9c666683e309
changeset:   79099:9c666683e309
branch:      3.2
parent:      79094:0799fd1f8887
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sun Sep 23 15:55:14 2012 +0300
summary:
  #15949, #15899: use \ufffd instead of ?.

files:
  Doc/howto/unicode.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst
--- a/Doc/howto/unicode.rst
+++ b/Doc/howto/unicode.rst
@@ -262,8 +262,8 @@
         ...
     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'
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list