It's Tk's fault

Kirill Simonov kirill at xyz.donetsk.ua
Thu Dec 20 05:05:46 EST 2001


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