Re: Hi,sorry to disturb u,but i need your help?
- From: Owen Taylor <otaylor redhat com>
- To: sandy_21 <sandy_21 sina com>
- Cc: shane minirl com, gtk-list gnome org
- Subject: Re: Hi,sorry to disturb u,but i need your help?
- Date: Fri, 26 Apr 2002 10:16:47 -0400 (EDT)
sandy_21 <sandy_21 sina com> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]