utf8 silly question

Konstantin Veretennicov kveretennicov at gmail.com
Tue Jun 21 17:59:34 EDT 2005


On 6/21/05, Jeff Epler <jepler at unpythonic.net> wrote:
> If you want to work with unicode, then write
>     us = u"\N{COPYRIGHT SIGN} some text"

...and you can get unicode character names like that from unicodedata module:
>>> import unicodedata
>>> unicodedata.name(unichr(169))
'COPYRIGHT SIGN'

See also http://www.unicode.org/charts/charindex.html

- kv



More information about the Python-list mailing list