Commit efe4bdcc authored by Ezio Melotti's avatar Ezio Melotti

#15949, 15899: merge with 3.2.

parents 37bd83fa 05aafb29
...@@ -262,8 +262,8 @@ Unicode result). The following examples show the differences:: ...@@ -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
'abc' '?abc'
>>> b'\x80abc'.decode("utf-8", "ignore") >>> b'\x80abc'.decode("utf-8", "ignore")
'abc' 'abc'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment