Can I change a unicode char to gb2312 using python?

Kick store_li at sina.com
Wed Dec 19 08:46:41 EST 2001


I know that Java have a method that can manually encode string, like that,

System.out.println(new String("some chinese char".getBytes()"GB2312"))

Is there any python function or method can do the same work?

Thanks for any help!

Kick





More information about the Python-list mailing list