iso_8859_1 mystery/tkinter

phil phillip.watts at anvilcom.com
Wed May 18 18:00:10 EDT 2005


> | >         s.const['DEG'] = '%c' % (0xb0)

> | > But the symbol for degrees, a little circle, produces
> | > a vertical bar in Tkinter Text box or Canvas.


> t.insert(0.0, u'%c' % 0xb0)
> 
> should do the trick though.
> 

COOL!  Thanks, though that seems a little odd.
As far as I know %c ignores the sign bit everywhere
else, including X11 and Win consoles.
But I'll just note it and do it.
Thanks again.




More information about the Python-list mailing list