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

rahul rahul03535 at gmail.com
Mon Apr 27 07:56:27 EDT 2009


is this generic API can be use to change ucs-2 to ucs-4
PyObject *  PyCodec_Encode(
       PyObject *object,
       const char *encoding,
       const char *errors
       );

if yes than what is the format of denoting ucs-4, because i try to do
that but all times i got segmentation fault, i used "ucs-4-le" for
little endian system and "ucs-4-be"  for big endian system to set
ucs-4 encoding.



More information about the Python-list mailing list