When researching Unicode issues in Python3, I can use this often cited document , which outlines initial ideas for Python3 Unicode support. Quote from this page:
For historical reasons, the most widely used encoding is ascii, which can only process Unicode code codes in the range 0-0xEF (i.e., ASCII is a 7-bit encoding).
I understand that 0xEF = 14*16 + 15*1 = 239 . This seems wrong to me, since binary 1111111 (7 bits) is 127 . Is this quote wrong or is my understanding wrong?
UPDATE: The document has been fixed! Thanks to Nick Coghlan for his excellent introduction to Python 3 string handling and for helping to verify a typo.
dotancohen
source share