Re: gtk2: utf8



Baris Metin wrote:

Hi,

How can I avoid using utf8 in my gtk2 apps ?

It's impossible.


My program gives an output like this :
[Invalid UTF-8] XÙ (at line : g_print ("%s\n", chipperText);)

I know I can convert my string to utf8 but its an encrypted text and I
will decrypt it within a few lines.

You can at least:
1) Use GLib functions: g_convert(), g_convert_with_iconv(), g_locale_to_utf8() to convert your string to UTF-8.
2) Use GNU gettext in your application (the best way, as I see).
3) Use 'iconv' program to convert all sources from your encoding to UTF-8.

Olexiy





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