Help for unicode

Gerhard Häring gh at ghaering.de
Sat Nov 8 23:19:28 CET 2003


Noixe wrote:
> Hello,
> 
> I'm italian and i not speak a good english. My problem is this:
> 
> Why this istruction:
> 
> print u"\u00" + str(41)
> 
> generate an error and this:
> 
> print u"\u0041"   no?

That's because Unicode literals (\uxxxx) are interpreted at compile 
time, not at runtime.

> Can I use all 65536 symbols of unicode in my program? For example, I need to
> use the mathematic symbol of void set. It has a 0198 number in a table of
> symbol that there is in Windows.

I don't know which symbol this is in Unicode, maybe somebody else can?

-- Gerhard






More information about the Python-list mailing list