i18n: looking for expertise

"Martin v. Löwis" martin at v.loewis.de
Sat Mar 12 07:35:50 EST 2005


klappnase wrote:
>     enc = locale.nl_langinfo(locale.CODESET).lower()

Notice that this may fail on systems which don't provide the
CODESET information. Recent Linux systems (glibc 6) have it,
and so do recent Solaris systems, but if you happen to use
an HPUX9 or some such, you find that locale.CODESET raises
an AttributeError.

Regards,
Martin



More information about the Python-list mailing list