Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Unicode digit to unicode string

Reply
Thread Tools

Unicode digit to unicode string

 
 
Gabriele *darkbard* Farina
Guest
Posts: n/a
 
      05-16-2006
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 ?

 
Reply With Quote
 
 
 
 
Alexandre Fayolle
Guest
Posts: n/a
 
      05-16-2006
Le 16-05-2006, Gabriele <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
 
Gabriele *darkbard* Farina
Guest
Posts: n/a
 
      05-16-2006
thank you, bye

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing out a 9-digit number from given string daniel_of_vienna Javascript 1 05-05-2009 02:57 PM
(8-bit binary to two digit bcd) or (8-bit binary to two digit seven segment) Fangs VHDL 3 10-26-2008 06:41 AM
reg expr, extract digit from string. joel Perl Misc 4 03-18-2005 09:11 PM
force string made from integer to be n-digit Thomas Jollans Java 2 02-02-2004 08:21 PM
unicode 3 digit decimal conversion Rune Hansen Python 9 09-29-2003 12:28 PM



Advertisments