How can I display unicode in Tk widget

Kick store_li at sina.com
Tue Dec 18 10:53:59 EST 2001


Thank you! I have Tcl/Tk installed on my system, then How can I make it
display with correct encoding?

Again, thank you for your professional answer.
"Martin von Loewis" <loewis at informatik.hu-berlin.de> wrote in message
news:j4heqolqqp.fsf at informatik.hu-berlin.de...
> "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