From 678a7ad5d9f195877f45f66d75246b8b2f31283e Mon Sep 17 00:00:00 2001 From: chang-ning Date: Mon, 10 Dec 2018 22:12:20 +0800 Subject: [PATCH] fix escape issue Signed-off-by: chang-ning --- docs/notes/python-unicode.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/notes/python-unicode.rst b/docs/notes/python-unicode.rst index e263817b..db80f7f9 100644 --- a/docs/notes/python-unicode.rst +++ b/docs/notes/python-unicode.rst @@ -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 "", line 1, in - 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'