Foreign Character Problems In Python 2.5 and Tkinter
jailtu at luukku.com
Sat Oct 13 15:44:00 CEST 2007
Sat, 13 Oct 2007 16:13:21 +0300, Juha S. kirjoitti:
> Thanks for the reply. I made changes to my code according to your
> example. Now any Scandinavian characters that are outputted by the
> program are missing in the Tk text box.
> file = codecs.open(filename, 'r', 'utf-8', 'ignore')
Remove that 'ignore'. If you then get error which complains,
that utf-8 codec can't handle the file, you've found the culprit.
The file might be in iso-8859-1.
More information about the Python-list