Unicode and print with python 2.1
Alexandre Fayolle
alf at leo.logilab.fr
Thu Jun 28 09:12:59 EDT 2001
Hello,
This is probably going to sound stupid, but here I go anyway. Please refer
me to TFM if this is what I deserve.
Is it normal to get UnicodeError when I try to print a unicode string with
Python 2.1?
>>> s=u'été'
>>> s
u'\xe9t\xe9'
>>> print s
Traceback (most recent call last):
File "<stdin>", line 1, in ?
UnicodeError: ASCII encoding error: ordinal not in range(128)
Alexandre Fayolle
--
http://www.logilab.com
Narval is the first software agent available as free software (GPL).
LOGILAB, Paris (France).
More information about the Python-list
mailing list