[I18n-sig] i18n : Tkinter app and iso-8859-1 ?
francois.schnell at gmail.com
Sun Mar 26 23:51:06 CEST 2006
I have a Python script (with Tkinter GUI) I've i18n with gettext (the script
is in English and my po -> mo file in French 'fr') :
In my script:
It works fine on french Windows but not on my Linux box (Ubuntu Breezy) :
when the script use the french .mo it displays unexcepted chararcters where
I had my french accents :(
Before using msgfmt.py on my po file I was carefull to indicate the french
charset in the " ":
"Content-Type: text/plain; charset=iso-8859-1\n"
"Generated-By: pygettext.py 1.5\n"
but I'm note sure if msgfmt use this charset declaration.
I've also tried later to add an encoding declaration in my script (first
line) but that didn't help either:
# -*- coding: iso-8859-1 -*-
I've also tried this without success (except I've got other strange chars
which are the same whatever I put in "encoding" var):
gettext.install("liberlab-soft", localedir, encoding)
The script (liberlab-soft.py) and the french po and mo file :
Thanks for help, hints ...please, s'il vous plait :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the I18n-sig