[PyKDE] qstring(qcstring) into python string

Petr Vaněk subzero at py.cz
Thu Apr 24 17:49:01 BST 2003


hello.

how do you convert the qstring into python one?
str(qstring) works fine just for ascii/latin1
something like
ret = unicode(str(qstring.local8Bit()), "utf-8")
raises 
UnicodeError: UTF-8 decoding error: unexpected code byte

headache today :-/

-- 
Petr Vanek --------------
petr.vanek [at] ika [dot] cz
www.yarpen.cz ----------------
Kuolema Kaikille (Paitsi Meille)
-------------------------------
Today is good day to end it all




More information about the PyQt mailing list