1. Manuel Pégourié-Gonnard
  2. cpython

Commits

Ezio Melotti  committed 0799fd1

#15949, 15899: avoid using non-latin1 chars in the doc (they break `make all-pdf`).

  • Participants
  • Parent commits aa73e60
  • Branches 3.2

Comments (0)

Files changed (1)

File Doc/howto/unicode.rst

View file
         ...
     UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0:
       invalid start byte
-    >>> b'\x80abc'.decode("utf-8", "replace")
-    '�abc'
+    >>> b'\x80abc'.decode("utf-8", "replace")  #doctest: +SKIP
+    '?abc'
     >>> b'\x80abc'.decode("utf-8", "ignore")
     'abc'