Can I change a unicode char to gb2312 using python?

Gerhard Häring gh_pythonlist at gmx.de
Thu Dec 20 00:37:21 EST 2001


Le 20/12/01 à 07:38, Oleg Broytmann écrivit:
> On Thu, Dec 20, 2001 at 10:54:29AM +0800, Kick wrote:
> > One piece additional, the python said unknown encoding. :-<
> 
>    There is a seprate project somewhere on sf.net that hs many oriental
> encodings. I don't rememeber its name, and cnnot find it... but it should
> be there.

Chinese:        http://sourceforge.net/projects/pythonzh/
Japanese:       http://pseudo.grad.sccs.chukyo-u.ac.jp/~kajiyama/python/

If this doesn't help yet, maybe someone from the i18n SIG knows a
solution: http://www.python.org/sigs/i18n-sig/

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list