Unicode digit to unicode string

Discussion in 'Python' started by Gabriele *darkbard* Farina, May 16, 2006.

  1. Hi, I have a unicode digit stored into a variable ('0020' for example)
    and I'd like to retrieve the corrisponding unicode character based on
    the current encoding. How can i do that ?
     
    Gabriele *darkbard* Farina, May 16, 2006
    #1
    1. Advertising

  2. Le 16-05-2006, Gabriele <> nous disait:
    > Hi, I have a unicode digit stored into a variable ('0020' for example)
    > and I'd like to retrieve the corrisponding unicode character based on
    > the current encoding. How can i do that ?


    use the unichr builtin function


    --
    Alexandre Fayolle LOGILAB, Paris (France)
    Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
    Développement logiciel sur mesure: http://www.logilab.fr/services
    Python et calcul scientifique: http://www.logilab.fr/science
     
    Alexandre Fayolle, May 16, 2006
    #2
    1. Advertising

  3. thank you, bye
     
    Gabriele *darkbard* Farina, May 16, 2006
    #3
    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. Fangs
    Replies:
    3
    Views:
    9,908
    darshana
    Oct 26, 2008
  2. Thomas Jollans
    Replies:
    2
    Views:
    415
    Carl Howells
    Feb 2, 2004
  3. Rune Hansen

    unicode 3 digit decimal conversion

    Rune Hansen, Sep 27, 2003, in forum: Python
    Replies:
    9
    Views:
    394
    Fredrik Lundh
    Sep 29, 2003
  4. joel
    Replies:
    4
    Views:
    153
    John W. Krahn
    Mar 18, 2005
  5. daniel_of_vienna

    Parsing out a 9-digit number from given string

    daniel_of_vienna, May 4, 2009, in forum: Javascript
    Replies:
    1
    Views:
    116
    SlipKnob
    May 5, 2009
Loading...

Share This Page