PyQT: QString to String Problem if ASCII>128
Ingo Linkweiler
i.linkweiler at gmx.de
Fri Mar 8 14:53:27 EST 2002
More information about the Python-list mailing list
Fri Mar 8 14:53:27 EST 2002
- Previous message (by thread): is there a fully working tar implementation in python
- Next message (by thread): PyQT: QString to String Problem if ASCII>128
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
no ideas?
I found a possible solution, but is this the best way?
uc=self.edit.text()
try:
t=str(uc)
except:
try:
t=unicode(self.edit.text()).encode("cp437")
except:
t="invalid char in string"
Ingo
- Previous message (by thread): is there a fully working tar implementation in python
- Next message (by thread): PyQT: QString to String Problem if ASCII>128
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list