Re: Python strings outside the 128 range

2006-07-17 Thread Michael Piotrowski
gives you something "safe" and you can advise the user to set the locale. > On my system I have added LANG to .profile. That's certainly the right thing to do. -- Michael Piotrowski, M.A. <[EMAIL PROTECTED]> Public key at <http://www.dynalabs.de/mxp/pubkey.txt> -- http://mail.python.org/mailman/listinfo/python-list

Re: Python strings outside the 128 range

2006-07-17 Thread Michael Piotrowski
ou shouldn't look directly at these variables (LANG and LC_*) but rather use the functions from the locale module, e.g.: import locale locale.setlocale(locale.LC_ALL, '') # use the current locale settings encoding = locale.nl_langinfo(locale.CODESET) -- Michael Piotrowski, M.

Re: locale support and 4.10

2005-03-06 Thread Michael Piotrowski
of many base system programs. HTH -- Michael Piotrowski, M.A. <[EMAIL PROTECTED]> Public key at <http://www.dynalabs.de/mxp/pubkey.txt> -- http://mail.python.org/mailman/listinfo/python-list