Re: libglade - "not proper UTF-8" warning
- From: volodya mindspring com
- To: Havoc Pennington <hp redhat com>
- Cc: "Dr. Simon J. Melhuish" <simon melhuish net>, clemens linux-austria com, List GTK <gtk-app-devel-list gnome org>
- Subject: Re: libglade - "not proper UTF-8" warning
- Date: Mon, 6 Nov 2000 01:29:03 -0500 (EST)
On 5 Nov 2000, Havoc Pennington wrote:
"Dr. Simon J. Melhuish" <simon melhuish net> writes:
Thanks for that.
OK, I see what is causing it now. I have two labels that contain a
degree symbol (radio buttons for Celcius or Fahrenheit). Is there an
easy way I can get the desired label, such that it will look OK under
varying locale settings? Presumably my label might come out funny when a
alphabet other than Latin is set if I just update it at run time.
With the upcoming GTK 2.0, what you'd do is simply encode the degree
symbol in UTF-8. With 1.2, since Glade saves a UTF-8 output file, it
A question: what fonts would GTK 2.0 rely upon for Unicode ?
As far as I know there aren't any good ones in standard XFree. (I.e.
either truetype or outline+bitmaps).
thank you
Vladimir Dergachev
should probably go ahead and convert from the locale's encoding to
UTF-8 on save, and libglade should convert back to the locale's
encoding on load. This could probably be considered a Glade bug, you
might ask on the Glade list about it.
Leaving Glade aside, what you would typically do in GTK 1.2 is
probably to put a string valid in the C locale in your source code,
and then use gettext() to let translators translate it into other
locales, using the proper encoding for that locale.
In 2.0, the encoding is UTF-8 regardless of locale, so you'd just
encode the degree symbol in UTF-8.
Havoc
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]