is PyCodec_Encode API able to change encoding fron UCS-2 to UCS-4

Gabriel Genellina gagsl-py2 at
Mon Apr 27 21:32:32 CEST 2009

En Mon, 27 Apr 2009 08:56:44 -0300, rahul <rahul03535 at> escribió:

> is this generic API can be use to change ucs-2 to ucs-4

I forget to comment on UCS-2 and UCS-4. Python does not support them  
directly; use utf-16 and utf-32 instead. If you start with an encoded  
string in UCS-2, the differences are irrelevant.

Gabriel Genellina

More information about the Python-list mailing list