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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to