From 41a385976b668ba94b52cf3b99093fc4f65acf26 Mon Sep 17 00:00:00 2001 From: 180909 <734461790@qq.com> Date: Mon, 8 Nov 2021 11:59:42 +0800 Subject: [PATCH] Fix spelling in document --- Doc/library/codecs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 949288b7c6d9b7..fcba69f10acb07 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -914,7 +914,7 @@ there's the so called BOM ("Byte Order Mark"). This is the Unicode character ``U+FEFF``. This character can be prepended to every ``UTF-16`` or ``UTF-32`` byte sequence. The byte swapped version of this character (``0xFFFE``) is an illegal character that may not appear in a Unicode text. So when the -first character in an ``UTF-16`` or ``UTF-32`` byte sequence +first character in a ``UTF-16`` or ``UTF-32`` byte sequence appears to be a ``U+FFFE`` the bytes have to be swapped on decoding. Unfortunately the character ``U+FEFF`` had a second purpose as a ``ZERO WIDTH NO-BREAK SPACE``: a character that has no width and doesn't allow