here's a snippet of code that prints a range of unicode chars, along
with their ordinal in hex, and name.
chars without a name are skipped. (some of such are undefined code
points.)
On Microsoft Windows the encoding might need to be changed to utf-16.
Change the range to see different unicode ch
On 15 Mar 2005 04:55:17 -0800, rumours say that "Xah Lee" <[EMAIL PROTECTED]>
might
have written:
>how do i get a unicode's number?
>
>e.g. 03ba for greek lowercase kappa? (or in decimal form)
you get the character with:
.>> uc = u"\N{GREEK SMALL LETTER KAPPA}"
or with
.>> uc = unicodedata.lo
how do i get a unicode's number?
e.g. 03ba for greek lowercase kappa? (or in decimal form)
Xah
Xah Lee wrote:
> python has this nice unicodedata module that deals with unicode
nicely.
>
> #-*- coding: utf-8 -*-
> # python
>
> from unicodedata import *
>
> # each unicode char has a unique name.