Hi, Rams�s Morales <[EMAIL PROTECTED]> writes:
> I want to display ISO-8859-1 characters on a text cell on a GtkTreeView. > I'm getting this error: > > Invalid UTF8 string passed to pango_layout_set_text() > > The text gets cut where the first character with an accent should > appear. you _must_ use UTF-8 encoding for all strings in GTK+-2.0. If your strings are encoded differently, use g_convert() or g_locale_to_utf8(). > I tried the g_locale_to_UTF8, but it cuts the text before it ends even > if it is plain US characters. I tried this: > > gtk_tree_store_set(model, &comment_iter, 6, comment->id, 7, > g_locale_to_utf8(comment->comment, -1, NULL, NULL, NULL), -1); g_locale_to_utf8() doesn't work in place. It returns the converted string. Salut, Sven _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
