[Python-checkins] r41987 - python/trunk/Doc/lib/libcodecs.tex
walter.doerwald
python-checkins at python.org
Mon Jan 9 13:45:05 CET 2006
Author: walter.doerwald
Date: Mon Jan 9 13:45:01 2006
New Revision: 41987
Modified:
python/trunk/Doc/lib/libcodecs.tex
Log:
Fix typos.
Modified: python/trunk/Doc/lib/libcodecs.tex
==============================================================================
--- python/trunk/Doc/lib/libcodecs.tex (original)
+++ python/trunk/Doc/lib/libcodecs.tex Mon Jan 9 13:45:01 2006
@@ -546,7 +546,7 @@
that choose a different subset of all unicode code points and how
these codepoints are mapped to the bytes 0x0-0xff. To see how this is
done simply open e.g. encodings/cp1252.py (which is an encoding that
-is used primarily on Windows). There's string constant with 256
+is used primarily on Windows). There's a string constant with 256
characters that shows you which character is mapped to which byte
value.
@@ -584,7 +584,7 @@
byte sequence consists of two parts: Marker bits (the most significant
bits) and payload bits. The marker bits are a sequence of zero to six
1 bits followed by a 0 bit. Unicode characters are encoded like this
-(with x being a payload bit, which when concatenated give the Unicode
+(with x being payload bits, which when concatenated give the Unicode
character):
\begin{tableii}{l|l}{textrm}{}{Range}{Encoding}
@@ -608,7 +608,7 @@
encoding can decode any random byte sequence. However that's not
possible with UTF-8, as UTF-8 byte sequences have a structure that
doesn't allow arbitrary byte sequence. To increase the reliability
-with which an UTF-8 encoding can be detected, Microsoft invented a
+with which a UTF-8 encoding can be detected, Microsoft invented a
variant of UTF-8 (that Python 2.5 calls "utf-8-sig") for its Notepad
program: Before any of the Unicode characters is written to the file,
a UTF-8 encoded BOM (which looks like this as a byte sequence: 0xef,
More information about the Python-checkins
mailing list