Question regarding handling of Unicode data in Devnagari

MRAB python at mrabarnett.plus.com
Sat Sep 12 20:17:40 CEST 2009


joy99 wrote:
> Dear Group,
> 
> As per the standard posted by the UNICODE for the Devnagari script
> used for Hindi and some other languages of India, we have a standard
> set, like from the range of 0900-097F.
> Where, we have numbers for each character:
> like 0904 for Devnagari letter short a, etc.
> Now, if write a program,
> 
> where
> ch="0904"
> and I like to see the Devnagari letter short a as output then how
> should I proceed? Can codecs help me or should I use unicodedata?
> 
> If you can kindly help me.
> 
That number is hexadecimal, so the character/codepoint is unichr(int(ch, 
16)) in Python 2.x.



More information about the Python-list mailing list