sandy_21 <[EMAIL PROTECTED]> writes:
> The problem is quite similar to yours posted on gtk-i18n maillist, > about CJK in basic-ft2:) > Mine is: > some gb2312-encoded string could not be show in gtkwidget such as > button,lable,clist > it report error with "Invalid UTF8 string passed to > pango_layout_set_text()" , > as far as i know gtk use pango to implement text output,in internal i > use unicode encoding > > The relevant versions > glib 2.0 > atk1.0 > pango1.0 > gtk+2.0 > redhat 7.2 > > so is it necessary to convert gb2312 string to utf8 string? Yes. >any api can do this? http://developer.gnome.org/doc/API/2.0/glib/glib-character-set-conversion.html Probably either g_locale_to_utf8() or g_convert() is what you are looking for. There are also functions for converting between various representations of Unicode in: http://developer.gnome.org/doc/API/2.0/glib/glib-unicode-manipulation.html Regards, Owen _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
