It's Tk's fault

Kirill Simonov kirill at xyz.donetsk.ua
Wed Dec 19 12:29:32 EST 2001


On Wed, Dec 19, 2001 at 12:31:20PM +0800, Kick wrote:
> I have done some experiment:
> 
> Using the same code to retrieve data from database:
> 
> 1. Display data using console by print clause
> 2. Display data using HTML using gb2312 encoding.
> 3. Display data using wxPython
> 4. Display data using Tk

Is your data a unicode string or a regular string?
In other words, what does "print type(data)" show?

> Only tk display a wrong char. I know Tk is easy to use and modify. So is
> there any one who can help me to display Chinese code correctly in Tk
> widget?


Kirill





More information about the Python-list mailing list