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

2012-05-23 Thread Manuel Quiñones
2012/5/2 Daniel Drake : > On Wed, May 2, 2012 at 10:24 AM, Manuel Quiñones 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

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

2012-05-02 Thread Chris Leonard
On Wed, May 2, 2012 at 2:01 PM, Daniel Drake wrote: > On Wed, May 2, 2012 at 10:24 AM, Manuel Quiñones 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 UT

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

2012-05-02 Thread Daniel Drake
On Wed, May 2, 2012 at 10:24 AM, Manuel Quiñones 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

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

2012-05-02 Thread Manuel Kaufmann
On Wed, May 2, 2012 at 1:24 PM, Manuel Quiñones 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 ? I don't know. I'm really new on this :) , but it depends on the codification that we are using with sugar. I guess there is a defaul

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

2012-05-02 Thread Manuel Quiñones
Hi humitos, 2012/5/2 Manuel Kaufmann : > Decode (using 'utf-8') the string inserted by the user in the URL address bar > to search with SQLite into places' database. > > Signed-off-by: Manuel Kaufmann > --- >  webtoolbar.py |    3 ++- >  1 file changed, 2 insertions(+), 1 deletion(-) > > diff --g

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

2012-05-02 Thread Manuel Kaufmann
Decode (using 'utf-8') the string inserted by the user in the URL address bar to search with SQLite into places' database. Signed-off-by: Manuel Kaufmann --- webtoolbar.py |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webtoolbar.py b/webtoolbar.py index d0f2dc9..c59520