Re: GtkTextBuffer:Compare text with those from GtkEntry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi xiangbing

I'm not sure what your problem is.

UTF-8 is the encoding, so you don't need to "look" for it - str(n)cmp
should be sufficient to compare them (that's why it's called Unicode ;-).

If you want to convert text from / to "any encoding" <--> UTF-8 you have
store the previous encoding.

If you need to convert text to UTF8 see Glib Docs -> GLib Utilities ->
Character Set Conversion (many people just need g_locale_to_utf8).

HTH

Jan-Marek
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux