[Kde-bindings] [Bug 105084] New: Python DCOP query issues with non-ASCII characters

Hugo Haas hugo at larve.net
Wed May 4 10:25:16 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=105084         
           Summary: Python DCOP query issues with non-ASCII characters
           Product: bindings
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings mail kde org
        ReportedBy: hugo larve net


Version:           3.3.2 (using KDE KDE 3.3.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I seem to be having issues with non-ASCII characters with pydcop. I am using UTF-8 encoding.

With test.py attached, I get:

hugo jibboom /tmp% dcop amarok collection query 'SELECT count(*) FROM
tags WHERE url LIKE "%a%"'
5901

hugo jibboom /tmp% python test.py a
SELECT count(*) FROM tags WHERE url LIKE "%a%"
['5901']

Everything looks normal here.

However, with "é" in the query:

hugo jibboom /tmp% dcop amarok collection query 'SELECT count(*) FROM
tags WHERE url LIKE "%é%"'
506

hugo jibboom /tmp%python test.py é
SELECT count(*) FROM tags WHERE url LIKE "%é%"
['0']

As you can see, the queries return very different results.



More information about the Kde-bindings mailing list