iso_8859_1 mystery/tkinter

phil phillip.watts at anvilcom.com
Wed May 18 12:05:26 EDT 2005


These work fine on Linux
         s.const = {}
         s.const['DEG'] = '%c' % (0xb0)
         s.const['DIV'] = '%c' % (0xf7)
         s.const['ANG'] = '%c' % (0xd8)

On WinXP the symbols for division and angle work fine.
But the symbol for degrees, a little circle, produces
a vertical bar in Tkinter Text box or Canvas.

However, if I run from IDLE and output to a console
window, 0xb0 produces the correct character for degrees.
Any idea why?
Thanks




More information about the Python-list mailing list