By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,593 Members | 1,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,593 IT Pros & Developers. It's quick & easy.

unicode character '\N{ }'

P: n/a
I learned from http://www.jorendorff.com/articles/unicode/python.html that
one can specify a unicode character by u'\N {name of the character}'.

Is there any method that I do the reverse of this process? For example,
when
I have a unicode character '£', uc.method() should return the character name
'POUND SIGN' in str format.

--
zooy
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <d3**********@news.kreonet.re.kr>,
Daewon YOON <dw****@purunSPAMinfo.co.kr> wrote:
I learned from http://www.jorendorff.com/articles/unicode/python.html that
one can specify a unicode character by u'\N {name of the character}'.

Is there any method that I do the reverse of this process? For example,
when
I have a unicode character '', uc.method() should return the character name
'POUND SIGN' in str format.


import unicodedata
name = unicodedata.name(c)

Just
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.