It's Tk's fault

Kick store_li at sina.com
Fri Dec 21 02:12:40 EST 2001


I have tried but it doesn't work. Python don't know the name of that encode
method.
"Kirill Simonov" <kirill at xyz.donetsk.ua> wrote in message
news:mailman.1008842364.24839.python-list at python.org...
> On Thu, Dec 20, 2001 at 10:46:37AM +0800, Kick wrote:
> > My string is a ordinary 'string' type according to the result of Print
> > type(variable)
>
> Try to convert data to unicode before using it:
>
>     data = unicode(data, 'gb2312')
>
> Maybe, you need to download additional codecs from
> "http://sourceforge.net/projects/python-codecs/".
>
>
> Kirill
>
>





More information about the Python-list mailing list