Skip to content

Commit

Permalink
Merge pull request #91 from crazyguitar/draft
Browse files Browse the repository at this point in the history
fix escape issue
  • Loading branch information
crazyguitar authored Dec 10, 2018
2 parents 928bd99 + 678a7ad commit d463878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/notes/python-unicode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ code points. If we want to avoid this exception, we can pass *replace*,
>>> u.decode('utf-8', 'strict')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can\'t decode byte 0xff in position 0: invalid start byte
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
>>> # use U+FFFD, REPLACEMENT CHARACTER
>>> u.decode('utf-8', "replace")
'\ufffd'
Expand Down

0 comments on commit d463878

Please sign in to comment.