Status of internationalization
JustFillBug
mozbugbox at yahoo.com.au
Thu Jun 30 04:14:45 UTC 2005
On 2005-06-29, Thomas Arendsen Hein <thomas at intevation.de> wrote:
> lgettext() ist Python 2.4 only, here is something that should work
> with Python 2.2 and 2.3, too:
>
> # only one:
> import locale
> locale.setlocale(locale.LC_ALL, '')
> encoding = locale.getlocale()[1]
>
getpreferredencoding( [do_setlocale])
Return the encoding used for text data, according to user preferences.
User preferences are expressed differently on different systems, and
might not be available programmatically on some systems, so this
function only returns a guess.
New in version 2.3.
More information about the Mercurial
mailing list