GLib gettext and UTF-8



Hi.

I don't know much about UTF8 issues, and I wanted to know if I am making the things well.

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?

Thanks.


~david



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