[Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

Daniel Drake dsd at laptop.org
Wed May 2 14:01:37 EDT 2012


On Wed, May 2, 2012 at 10:24 AM, Manuel Quiñones <manuq at laptop.org> wrote:
> Works for me in my dev machine and in the XO.  Are we safe to assume
> that the text in GtkEntry is utf-8 ?

All strings in GTK+ are in UTF-8.
However, python tends to work in UTF16.

I am surprised that it is not automatically converted to UTF16 by pygobject.

What is the data type of self.props.text? Can you do self.get_text()?

Daniel


More information about the Sugar-devel mailing list