Re: GLib gettext and UTF-8



On 9/27/05, David Rosal <david rosal upf edu> wrote:
In my GTK2 program, I use the macro _(str) to translate the strings.
"str" is in english (ASCII), but the translation may be encoded in an
arbitrary codeset (e.g. ISO-8859-1 or KOI-8...). The question is: Does
the glib macro _(str) convert the strings to UTF-8 encoding, or I have
to make g_locale_to_utf8(_(str), ...) everytime I have to deal with a
translatable string?


you should ask translators to use UTF-8 encoding, and set it in the
.po file settings.



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