[Tkinter-discuss] Unicode in MacOSX: any progress?

Michael O'Donnell michael.odonnell at uam.es
Tue Oct 9 19:19:37 CEST 2007


Dear all,

I develop an application for linguistic annotation, using python/tkinter,
and have just extended my code to support unicode text files.

All went fine on the Windows version (where I develop), but
when I took my code over to MacOS (Tiger, with python 2.5.1),
I find Tkinter cannot display unicode under MacOS.

A previous posting (mikegasser at sbcglobal.net) almost a year ago
gave a simple example:

#=========================
from Tkinter import *
import tkFont

root = Tk()
myFont = tkFont.Font(size=18)
w = Label(root, text=u'Bun\u0103-diminea\u021ba, lume', font=myFont)
w.pack()

root.mainloop()
 #=========================

This works fine under Windows, but displays squares for the unicode
chars under MacOSX. This has not been fixed in the last year.

Are there any solutions to this problem?

Mick


More information about the Tkinter-discuss mailing list