How can I display unicode in Tk widget

Kick store_li at sina.com
Mon Dec 17 08:03:07 EST 2001


I use sqlite as my database server and create a database with it, in which
contains Unicode(Chinese) char. When I use Chinese platform, the Chinese
char can be displayed correct in my winsql windows and sqlite's command
line. While, after import python's odbc module and retrieve data using sql
statement, I try to display it in a Tk Label. Unfortunately, I can only get
one and a half char.

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

Thanks for any help!!





More information about the Python-list mailing list