On Tue, 2007-02-20 at 13:31 +0100, [EMAIL PROTECTED] wrote: > hi, > > I've got a few questions about which charset gtk uses. > i.e. string = entry.get_text() returns a string, and I would like > to know the charset of the string: > > - which charset does "string" use? > is this locale-dependent? > does it also depend on something else? > > - is this the same in C/gtk and python/pygtk? > > - I've tested this with pygtk, and I always got UTF-8-encoded > strings, no matter what locale I used (I tested: LANG=C, > LANG=de_DE.iso88591 and LANG=en_US.utf8). > can I rely on this? so does get_text() in pygtk always > return utf-8-strings? > > unfortunately I didn't find anything about this in the documentation, > so I hope you can help me.
Yes, GTK+ uses UTF-8 internally everywhere. See FAQ 1.8 "How do I use non-ASCII characters in GTK+ programs ?", http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html#id2531324 Ed _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list