Re: GtkTextBuffer:Compare text with those from GtkEntry
- From: Jan-Marek Glogowski <glogow fbihome de>
- To: xiangbing peoplemail com cn
- Cc: gtk-list gnome org
- Subject: Re: GtkTextBuffer:Compare text with those from GtkEntry
- Date: Sat, 26 Jun 2004 17:26:53 +0200 (CEST)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]