Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5b0ec0 commit c8c60c2Copy full SHA for c8c60c2
1 file changed
Doc/howto/unicode.rst
@@ -263,10 +263,13 @@ Unicode result). The following examples show the differences::
263
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0:
264
unexpected code byte
265
>>> b'\x80abc'.decode("utf-8", "replace")
266
- '�abc'
+ '?abc'
267
>>> b'\x80abc'.decode("utf-8", "ignore")
268
'abc'
269
270
+(In this code example, the Unicode replacement character has been replaced by
271
+a question mark because it may not be displayed on some systems.)
272
+
273
Encodings are specified as strings containing the encoding's name. Python 3.2
274
comes with roughly 100 different encodings; see the Python Library Reference at
275
:ref:`standard-encodings` for a list. Some encodings have multiple names; for
0 commit comments