Re: locale problem with GTK 2



El sáb, 16-11-2002 a las 16:06, Olexiy Avramchenko escribió:
> Carlos wrote:
> 
> >Each time I try to write french special characters (like " é à ç ") with any GTK2 app, this make it crash... I think this issue come from my locale.
> >
> >Where can I find the locale configuration ?
> >How can I fix my locale ?
> >
> GTK+-2.0 uses utf-8 only.
> So you have to set your locale to smth like "aa_BB.UTF-8" and pass only 
> utf-8 strings into the library functions (like gtk_label_set_text()).
> You can use GNU gettext for dealing with i18n or use GLib functions to 
> convert strings from your encoding to utf-8.


also you can try with GLib's g_locale_to_utf8. Go to api reference for
further details. 
Regards, Juan.


> 
> Olexiy
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
-- 
Juan Agüí Martín
ETSI Telecomunicación
C. Universitaria S/N Dpcho B-205
Madrid 28050 Spain




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