Question on Strings

Discussion in 'Python' started by Kalyankumar Ramaseshan, Feb 6, 2009.

  1. Hi,

    Excuse me if this is a repeat question!

    I just wanted to know how are strings represented in python?

    I need to know in terms of:

    a) Strings are stored as UTF-16 (LE/BE) or UTF-32 characters?
    b) They are converted to utf-8 format when it is needed for e.g. when storing the string to disk or sending it through a socket (tcp/ip)?

    Any help in this regard is appreciated.

    Thank you.

    Regards
    Kalyan
     
    Kalyankumar Ramaseshan, Feb 6, 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. Kurt Krueckeberg
    Replies:
    2
    Views:
    726
    =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?=
    Nov 17, 2004
  2. Rick

    Comparing strings from within strings

    Rick, Oct 21, 2003, in forum: C Programming
    Replies:
    3
    Views:
    394
    Irrwahn Grausewitz
    Oct 21, 2003
  3. Klaus Neuner
    Replies:
    7
    Views:
    518
    Klaus Neuner
    Jul 26, 2004
  4. Girish Sahani
    Replies:
    17
    Views:
    581
    Boris Borcic
    Jun 9, 2006
  5. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    803
    Malcolm
    Jun 24, 2006
Loading...

Share This Page