Who could explain the follow issue ?

>>> print u'Δ'
Δ
>>> print u'�'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'gbk' codec can't encode character u'\x80' in
position 0: il
legal multibyte sequence
>>>

or I just put the unicode number
>>> print u'\u0394'
Δ
>>> print u'\u20ac'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'gbk' codec can't encode character u'\u20ac' in
position 0:
illegal multibyte sequence
>>>

My terminal is cmd.exe under windows XP.
what's the different between the two character ? what can I do if I
want to print the u'\u20ac'?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to