On December 19, 2000 07:20 pm, you wrote:
> Thanks Dan!
>
> I got it working partly, by doing:
> mystring=eval(repr(QString("���")))
> atleast so that I could use some functions that seem to work with it.
> I still can't use "print" which still complains the same error message.
> I guess there has to be some other way of doing this.
>
did you try this?
qstr = QString("���") # unicode qstring
print `qstr` # note the backquotes
ustr = unicode(`qstr`, 'utf-8') # python unicode
print ustr # python knows how to print it's own unicode
print ustr.encode('ISO-8859-1') # swedish charset
_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde