char 128? no... 256

Afanasiy abelikov72 at hotmail.com
Tue Feb 11 23:05:22 EST 2003


On Tue, 11 Feb 2003 19:40:08 -0800, Erik Max Francis <max at alcyone.com>
wrote:

>Afanasiy wrote:
>
>> UnicodeError: ASCII encoding error: ordinal not in range(128)
>> 
>> This isn't even unicode, it's extended ascii characters used in
>> foreign
>> languages.
>
>That's not ASCII; ASCII is 7-bit clean.  If you're getting a Unicode
>error, then it _is_ a Unicode object you're dealing with, whether you
>like it or not.

Ok then what is 8 bits? That's not unicode. I call it extended ascii,
but I don't really care what it's actually called, I know it as a char.

And I think it's odd that 8 bit char's would need to be converted.




More information about the Python-list mailing list