needs help in how to translate ≴ and ≵

Jeff Epler jepler at unpythonic.net
Wed Sep 17 17:48:32 EDT 2003


&#NNNN; is an HTML "numeric character reference".  See
http://www.w3.org/TR/html4/charset.html#h-5.3.1

You can use Python to find the name of a particular Unicode character:
>>> import unicodedata
>>> unicodedata.name(unichr(8820))
'NEITHER LESS-THAN NOR EQUIVALENT TO'

On my terminal, I can display that character this way:
>>> print unichr(8820).encode("utf-8")
≴
(I think that's a less-than symbol, "<" above an equivalent symbol (~)
with a vertical bar through it, but I really can't tell in this font...)

Jeff





More information about the Python-list mailing list