UTF-8 / German, Scandinavian letters - is it really this difficult?? Linux & Windows XP
"Martin v. Löwis"
martin at v.loewis.de
Tue Feb 22 21:03:09 EST 2005
Fuzzyman wrote:
>>ust = 'æøå'.decode('utf-8')
>>
>
> Which is now deprecated isn't it ? (including encoded string literals
> in source without declaring an encoiding).
Not having an encoding declaration while having non-ASCII characters
in source code is deprecated.
Having non-ASCII characters in string literals is not deprecated
(assuming there is an encoding declaration in the source); trusting
then that the string literals are utf-8-encoded (and decoding
them such) is fine.
Regards,
Martin
More information about the Python-list
mailing list