REPOST: Re: How can I display unicode in Tk widget

Martin v. Loewis martin at
Sun Dec 30 09:24:51 EST 2001

"Kick" <store_li at> writes:

> Could someone help me?

With the code you have given, it is still difficult to understand your
problem: You fetch the string from the database, but we do not know
what the string is. Could you please modify your program to print the
type and value of f, then modify it to use the value literally,
i.e. without any use of SQLite.

Or, to try this vice versa, please execute the program

import Tkinter
l = Tkinter.Label(text=u"\u5321")

on your system. On my system (Python 2.2 on Windows XP), it displays a
window with a single Chinese character (which I picked arbitrarily,
since I don't speak Chinese). What does that very program do on your
system? If it fails, which Python version and Windows version are you


========= WAS CANCELLED BY =======:
From: martin at (Martin v. Loewis)
Newsgroups: comp.lang.python
Subject: cmsg cancel <m3n1007pl8.fsf at>
Control: cancel <m3n1007pl8.fsf at>
Date: Mon, 31 Dec 2001 04:06:16 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.m3n1007pl8.fsf at>
X-Trace: 1009774227 27193 (31 Dec 2001 04:50:27 GMT)
X-Complaints-To: usenet at
NNTP-Posting-Date: Mon, 31 Dec 2001 04:50:27 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.

More information about the Python-list mailing list