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

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Apr 27 15:32:32 EDT 2009


En Mon, 27 Apr 2009 08:56:44 -0300, rahul <rahul03535 at gmail.com> 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