#15949, 15899: avoid using non-latin1 chars in the doc (they break `make all-pdf`).
This commit is contained in:
parent
85710a40e7
commit
b1d0e5b11e
|
@ -262,8 +262,8 @@ Unicode result). The following examples show the differences::
|
||||||
...
|
...
|
||||||
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0:
|
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0:
|
||||||
invalid start byte
|
invalid start byte
|
||||||
>>> b'\x80abc'.decode("utf-8", "replace")
|
>>> b'\x80abc'.decode("utf-8", "replace") #doctest: +SKIP
|
||||||
'<EFBFBD>abc'
|
'?abc'
|
||||||
>>> b'\x80abc'.decode("utf-8", "ignore")
|
>>> b'\x80abc'.decode("utf-8", "ignore")
|
||||||
'abc'
|
'abc'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue