[Kde-bindings] [Bug 209046] krosspython: UTF-8 python strings are encoded as ASCII when converted to QString

Daniel Calviño Sánchez danxuliu at gmail.com
Wed Sep 30 22:40:29 UTC 2009


https://bugs.kde.org/show_bug.cgi?id=209046





--- Comment #1 from Daniel Calviño Sánchez <danxuliu gmail com>  2009-10-01 00:40:29 ---
Created an attachment (id=37271)
 --> (http://bugs.kde.org/attachment.cgi?id=37271)
Patch for unittest.py showing the bug

Here it is a unit test showing the problem: the file is encoded in UTF-8, so
are the strings, but the string returned by the method is different than the
Python one.

However the problem happens, as already said, not when the string is returned
by the method and thus converted from QString to Python string, but when it is
passed to the method and converted from Python string to QString.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kde-bindings mailing list