Can I change a unicode char to gb2312 using python?

Oleg Broytmann phd at phd.pp.ru
Wed Dec 19 23:32:12 EST 2001


On Thu, Dec 20, 2001 at 10:41:14AM +0800, Kick wrote:
> Thank you! But what I want to change is a variable. How can I use this
> method? Just f.encode("gb2312")?
> 
> But python told me that out of range(128).What shall I do ?

   http://www.python.org/cgi-bin/faqw.py?req=show&file=faq04.102.htp

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list