Tkinter - non-ASCII characters in text widgets problem

"Martin v. Löwis" martin at
Thu Jun 25 16:12:46 EDT 2009

> I've tried various UTF file encoding (also with BOM mark), use of
> u"text"

Always use u"text". This should work. Everything else might not work.

> After applying this, the effect remains the same - one big garbage.

Can you please be more specific? What is "one big garbage"?

> I'm out of ideas: my script is UTF-8 in 101%; Mac and Windows both
> support UTF-8, Python also supports it - so where is the problem? 

Most likely, Tk does not work correctly on your system. See whether
you can get correct results with wish.


More information about the Python-list mailing list