[Pythonmac-SIG] Unicode

Philippe de Rochambeau phiroc at free.fr
Sat Mar 20 10:28:13 EST 2004


Hello,

I can't get python 2.3 to work with unicode strings. For instance,

print u"El\xE9phant"

results in

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
UnicodeEncodeError: 'ascii' codec can't encode character '\ue9' in 
position 2: ordinal not in range(128)
 >>>

any help would be much appreciated.

Philippe




More information about the Pythonmac-SIG mailing list