Re:Unicode In Python, Completely Demystified
by adamtj on Saturday February 26, 2011 @11:21AM
(#2265831)
There are no ASCII characters > 127. ASCII is a 7-bit encoding. That's why you run into cp1252 all the time if you work with Western European languages, such as English. cp1252 is an 8-bit superset of ASCII designed for Western European languages. I believe it's true that the first 256 unicode code points are actually cp1252, which implies that the first 128 code points correspond with ASCII.
[ Parent
| on HN ]
Re:Unicode In Python, Completely Demystified
by beaumartinez on Saturday February 26, 2011 @11:59AM
(#2265903)
Windows-1252 (cp1252) is similar to ISO-8859-1 (Latin-1), which is a subset of Unicode; both are a superset of ASCII. Windows-1252 however has a few characters mapped to different codepoints.