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

Discussion in 'Python' started by rahul, Apr 27, 2009.

  1. rahul

    rahul Guest

    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.
     
    rahul, Apr 27, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. D. Shane Fowlkes
    Replies:
    1
    Views:
    424
    Marina
    May 19, 2005
  2. Joseph Suprenant

    converting fron unsiged char to int

    Joseph Suprenant, Aug 18, 2003, in forum: C++
    Replies:
    4
    Views:
    587
    Kevin Goodsell
    Aug 19, 2003
  3. ss
    Replies:
    1
    Views:
    1,400
    Gordon Beaton
    Jun 22, 2006
  4. rahul
    Replies:
    1
    Views:
    265
    Benjamin Peterson
    Apr 21, 2009
  5. rahul
    Replies:
    2
    Views:
    291
    Gabriel Genellina
    Apr 27, 2009
Loading...

Share This Page