a simple unicode question

"Martin v. Löwis" martin at v.loewis.de
Wed Oct 21 00:32:40 EDT 2009


> Where are the literals (i.e. u'\N{DEGREE SIGN}') defined? I found
> http://www.unicode.org/Public/5.1.0/ucd/UnicodeData.txt
> Is that the place to look?

Correct - you are supposed to fill in a Unicode character name into
the \N escape. The specific list of names depends on the version of
the UCD which was used in the specific Python version, but the
characters you are likely interested in probably had been defined
"forever".

Regards,
Martin



More information about the Python-list mailing list