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