unicode positions of characters

Michael Hudson mwh at python.net
Thu Jan 16 09:52:31 EST 2003


Giorgi Lekishvili <gleki at gol.ge> writes:

> Could somebody tell me how can I get the unicode hexadecimals of chars?
> e.g., 'char'  --> xyzv
> The idea is that I have to get a position of a latin char, and shift it
> withe a preset offset to get a new letter of another alfabet.

unichr(offset + ord(u'\N{latin small letter e}'))?

Cheers,
M.

-- 
  Ability to type on a computer terminal is no guarantee of sanity,
  intelligence, or common sense. 
                                 -- Gene Spafford's Axiom #2 of Usenet




More information about the Python-list mailing list