Hi, I see. Thank you for your help!
Regards, hongzheng Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote > > > I may misunderstood it. I will think about it carefully. > > > > By the way, does python has a interface, just like iconv in libc for > > C/C++? Or, how can I convert a string from a encoding into another > > one? > > if b is an 8-bit string containing an encoded unicode string, > > u = b.decode(encoding) > > or > > u = unicode(b, encoding) > > gives you a unicode string. to encode the unicode string back to another > byte string, use the encode method. > > b = u.encode(encoding) > > </F> -- http://mail.python.org/mailman/listinfo/python-list