Why does IDLE handle one character correctly but not another?
>>> e = '€'
>>> print unichr(ord(e))
>>> p = '£'
>>> print unichr(ord(p))
£
>>> ord(e)
128
>>> ord(p)
163
I tried adding various # coding lines, but that didn't help.
EDIT: The browser must be UTF-8, otherwise it will look rather strange.
EDIT 2: On my system, the euro char displays correctly on line 1, but not on the print line. Pound char displays correctly in both places.
source
share