[pygtk] coding of characters (in general and greek in particular)

Edward Catmur ed at catmur.co.uk
Sun Aug 20 17:57:26 WST 2006


On Sun, 2006-08-20 at 10:46 +0200, Pascal DUCHATELLE wrote:
> I am trying to understand character coding and python (unicode...).
> Can someone tell me why in IDLE I have to enter the sequence u'\u03B1'
> to get an alpha greek sign displayed while in the texttest.py file
> that comes with th pyGTK demo package there are some 'cabalistic'
> characters (in the greek example section) that are displayed like
> greek symbols just right.

IDLE uses Tcl/Tk, doesn't it?

What environment are you running IDLE under? 
What are your locale settings? 
What sort of output do you get from e.g.

>>> import gtk
>>> w = gtk.Window()
>>> w.add(gtk.Label("δ U+03B4 GREEK SMALL LETTER DELTA"))
>>> w.show_all()
>>> gtk.main()

Ed



More information about the pygtk mailing list