Hello!
I'm writing python programs and using the built-in GUI Tkinter and tkFileDialog modules.
Everything works well, and the program is very handy now (it is a HTML editor btw) but as I'm Hungarian, I most likely want to use the ISO-1899-16 character set. But if I want to save the text in the editor, I get an error message that non-ASCII characters are Not supported. Well, I don't think so. I'm using special Hungarian characters (öüóűőúéáí) in other Tkinter widgets(buttons, menus etc.) and they shown good, so I think there is a solution for this too. I hope someone who is expert in Tkinter (and/or Python) can help.
AND before you say, (just do not have any confuse) of course I wrote # -*- coding: cp1250 -*- in the beginning but it does nothing.
By the way, I'm using Windows XP Service Pack 2, and the program has been written in Python 2.6 (this is why I'm writing Tkinter and not tkinter. as far as I know, 3.0 uses tkinter module with lowercase "T")
Thanks!
Nitram
I'm writing python programs and using the built-in GUI Tkinter and tkFileDialog modules.
Everything works well, and the program is very handy now (it is a HTML editor btw) but as I'm Hungarian, I most likely want to use the ISO-1899-16 character set. But if I want to save the text in the editor, I get an error message that non-ASCII characters are Not supported. Well, I don't think so. I'm using special Hungarian characters (öüóűőúéáí) in other Tkinter widgets(buttons, menus etc.) and they shown good, so I think there is a solution for this too. I hope someone who is expert in Tkinter (and/or Python) can help.

AND before you say, (just do not have any confuse) of course I wrote # -*- coding: cp1250 -*- in the beginning but it does nothing.

By the way, I'm using Windows XP Service Pack 2, and the program has been written in Python 2.6 (this is why I'm writing Tkinter and not tkinter. as far as I know, 3.0 uses tkinter module with lowercase "T")
Thanks!
Nitram