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")

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to