Re: Problem with GTK_LABEL in GTK2
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: Johannes Böhler <johannesb surfeu at>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Problem with GTK_LABEL in GTK2
- Date: Thu, 03 Oct 2002 10:05:18 +0300
Johannes Böhler wrote:
Hallo,
I have problems with LABELS in GTK2. When I use ä, ö, ü in the
text-string, then I get a runtime-error.
the code:
label=gtk_label_new(NULL);
gtk_label_set_markup (GTK_LABEL (label), "<b>Böhler</b>");
gtk_widget_show(label);
gtk_box_pack_start (GTK_BOX (leiste), label, FALSE, FALSE, 0);
the error message:
app (pid:1652): Gtk-WARNING **: Failed to set label from markup
due to error parsing markup: Error on line 3 char 9:
Invalid UTF-8 encoded text
How do I use ä, ö, ü in GTK_LABEL?
Hello, Johannes
GTK+-2.0 uses UTF-8 encoding only. You have to convert your strings to
UTF-8.
Consider g_locale_to_utf8(), g_convert() functions.
"gtk-doc/glib/glib-character-set-conversion.html"
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]