On December 19, 2000 04:21 pm, you wrote:
> I have some problems with using swedish character in Qt widgets when I'm
> using PyQt.
> Doing the following:
> mystring = str(QString("���"))
> Gives me the following error:
> UnicodeError: ASCII encoding error: ordinal not in range(128)
>
> However I have no problems doing QString("���") and no problems doing
> mystring="���"
> How would I go about to do the conversion in between?
try backquoting or using repr (i tried backquoting and it works) instead of
str()
on my keyboard the backquote is beside the number 1 at the top left of my kb.
your code with backquotes:
mystring = `QString("���")`
_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde