PEP 3131: Supporting Non-ASCII Identifiers

René Fleschenberg rene at korteklippe.de
Wed May 16 06:57:06 EDT 2007


Christophe schrieb:
> René Fleschenberg a écrit :
>> Christophe schrieb:
>>> You should know that displaying and editing UTF-8 text as if it was
>>> latin-1 works very very well.s
>>
>> No, this only works for those characters that are in the ASCII range.
>> For all the other characters it does not work well at all.
> 
> This alone shows you don't know enouth about UTF-8 to talk about it.
> UTF-8 will NEVER use < 128 chars to describe multibyte chars. When you
> parse a UTF-8 file, each space is a space, each \n is an end of line and
> each 'Z' is a 'Z'.

So? Does that mean that you can just display UTF-8 "as if it was
Latin-1"? No, it does not. It means you can do that for exactly those
characters that are in the ASCII range. For all the others, you can not.

-- 
René



More information about the Python-list mailing list