gtk2, gettext and accentuated characters...


I have written a small gui with gtk2. The language of the all the texts 
are in english. As I am french and as some french people use it, i decided 
to try to learn how to use gettext some days ago.
Well, Everything works fine except accentuated characters. For exemple, 
instead of é, i get two characters that are not on my keyboard :)

Here is what's in my files :

in fr.po, the header is 

msgid ""
msgstr ""
"Project-Id-Version: stats\n"
"POT-Creation-Date: 2004-01-11 12:58+0100\n"
"PO-Revision-Date: 2004-01-11 13:19+0100\n"
"Last-Translator: Vincent TORRI \n"
"Language-Team: fr <LL li org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"

and an exemple of label with accentuated character : 

#: src/gui.c:1172
msgid "_Preferences"
msgstr "_Préférences"

in the gui.c : 

root_menu = gtk_menu_item_new_with_mnemonic 
(g_locale_to_utf8(_("_Preferences"), -1, NULL, NULL, NULL));

of course, _() is defined by gettext()

If I have forgotten an important information in order to understand my 
problem, please tell me.

I have found no informations about that on the mailing lists and on the 

Does someone see where i am wrong ?

Thanks !

Vincent TORRI

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]