[Python-3000] Does Py3k's print offer any unicode encoding help?
"Martin v. Löwis"
martin at v.loewis.de
Thu Feb 14 23:59:04 CET 2008
> Maybe a decent rule of thumb would be:
>
> - if LANG is set, use the encoding it specifies; if there's no
> encoding in it, assume it's ASCII.
>
> - if LANG is *not* set, default to UTF-8 instead of to US-ASCII; UTF-8
> is much more likely to be correct and useful for 10.4 and before.
You mean, on OSX? Sounds fine to me.
Some people will see moji-bake with this surely; they'll have to set
LANG themselves.
(IOW, ASCII is more likely to be correct, but UTF-8 is more likely
to be useful).
Regards,
Martin
More information about the Python-3000
mailing list