why i can't set locale?
Peter Otten
__peter__ at web.de
Sat Sep 1 02:10:40 EDT 2012
contro opinion wrote:
>>>> locale.setlocale(locale.LC_ALL, 'gbk')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.6/locale.py", line 513, in setlocale
> return _setlocale(category, locale)
> locale.Error: unsupported locale setting
Try picking one of the locales listed by
$ locale -a
(Goggle suggests that you may be looking for "zh_CN.GBK")
More information about the Python-list
mailing list