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

Simon Edwards simon at simonzone.com
Wed May 4 17:31:57 BST 2005



----------  Forwarded Message  ----------

Subject: [Kde-bindings] [Bug 105084] New: Python DCOP query issues with 
non-ASCII characters
Date: Wednesday 04 May 2005 12:25
From: Hugo Haas <hugo at larve.net>
To: kde-bindings at mail.kde.org

------- 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.
_______________________________________________
Kde-bindings mailing list
Kde-bindings at kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


-------------------------------------------------------

-- 
Simon Edwards             | Guarddog Firewall
simon at simonzone.com       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."




More information about the PyQt mailing list