Thread
:
Non-Ascii characters in Python
View Single Post
Nathraiben
2010-07-12 , 22:26
Posts: 267 | Thanked: 408 times | Joined on May 2010 @ Austria
#
6
@dannym: It's nice that you're trying to help, but bringing up a couple of rather outdated threads doesn't quite seem the way to go...
If nothing happened in a thread for more than two weeks, chances are that either the problem got solved (thanks again, Rob1n) or the thread starter has lost interest, anyway.
@cheungs: That's what I tried at first, but sadly it didn't work, since decode() simply failed on non-ascii characters. Which is rather strange, since from the description it is meant to do the conversion itself...?
Btw, the only way to get it to work was using some rather horrid toUtf8-fromUtf8 constructs like:
Code:
unicode(QString.fromUtf8(lang.gettext(filetxt)).toUtf8(), "utf-8")
Quote & Reply
|
Nathraiben
View Public Profile
Send a private message to Nathraiben
Find all posts by Nathraiben