It's Tk's fault

Kick store_li at sina.com
Wed Dec 19 21:46:37 EST 2001


My string is a ordinary 'string' type according to the result of Print
type(variable)

"Kirill Simonov" <kirill at xyz.donetsk.ua> wrote in message
news:mailman.1008782602.15314.python-list at python.org...
> 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