Help for unicode

Martin v. Löwis martin at v.loewis.de
Sat Nov 8 18:23:28 EST 2003


"Noixe" <NoixeTOGLIMI at hotmail.com> writes:

> print u'\u2205'
> 
> I have this error: UnicodeError: ASCII encoding error: ordinal not in
> range(128)
> 
> 
> Why? I must include some module?

No. Just don't print it:

>>> x=u'\u2205'
>>> x
u'\u2205'

The character U+2205 is EMPTY SET; your terminal is not capable of
displaying that symbol.

Regards,
Martin





More information about the Python-list mailing list