[PyKDE] Using some ISO-8859-1 characters with PyQt
ted at mtv.se
Wed Dec 20 01:17:09 GMT 2000
I got it working partly, by doing:
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.
Den 2000.12.20 00:35:13 +0100 skrev dan:
> On December 19, 2000 04:21 pm, you wrote:
> > I have some problems with using swedish character in Qt widgets when
> > 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
> on my keyboard the backquote is beside the number 1 at the top left of my
> your code with backquotes:
> mystring = `QString("åäö")`
Ted Parnefors <ted at mtv.se>, KeyID 0x6627DEE4
PGP Fingerprint 1C39FA94703EB54A011CF18932018E256627DEE4
More information about the PyQt