On Fri, Oct 12, 2012 at 12:37 AM, eryksun wrote:
>
> For example (untested):
>
> >>> locale.setlocale(locale.LC_ALL, 'German_Germany.1252')
I got around to testing the above, and it works. Also, the Python docs
say "if [locale is] an iterable, it’s converted to a locale name using
the locale
On Thu, Oct 11, 2012 at 11:12 PM, Dae James wrote:
>
import locale
loc = locale.getlocale() # get current locale
> # use German locale; name might vary with platform
locale.setlocale(locale.LC_ALL, 'de_DE')
This depends on the C runtime. For Windows, see MSDN:
setlocale
http://msd
Here is a example in "Python v2.7.2 document":
>>> import locale
>>> loc = locale.getlocale() # get current locale
# use German locale; name might vary with platform
>>> locale.setlocale(locale.LC_ALL, 'de_DE')
However, the result of executing on my computer is:
>>> locale.setlocale(locale.LC_ALL