How can I display unicode in Tk widget

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Dec 18 06:19:58 EST 2001


"Kick" <store_li at sina.com> writes:

> Is there any function or something else that can make me use Unicode in Tk?

On Windows, Tcl doesn't find its encoding database, thus it cannot
find out how to convert the Unicode string for display. Setting
TCL_LIBRARY may help.

It is questionable whether this is a bug in Tcl or Python: It is a bug
in Python, for not installing Tcl libraries in a place where Tcl will
find them, and it is a bug in Tcl, for not offering an API to tell it
a different location for the codecs database.

Regards,
Martin



More information about the Python-list mailing list