needs help in how to translate ≴ and ≵

Raaijmakers, Vincent (IndSys, GE Interlogix) Vincent.Raaijmakers at ge.com
Thu Sep 18 08:24:52 EDT 2003


Thanks!

Vincent

-----Original Message-----
From: Jeff Epler [mailto:jepler at unpythonic.net]
Sent: Wednesday, September 17, 2003 5:49 PM
To: Raaijmakers, Vincent (IndSys, GE Interlogix)
Cc: python-list at python.org
Subject: Re: needs help in how to translate ≴ and ≵


&#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