Thread
:
Non-Ascii characters in Python
View Single Post
Rob1n
2010-06-28 , 21:43
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#
2
Python should handle UTF-8 natively, though converting to/from a QString can be a bit more tricky. If it's been input in UTF-8, you should be able to use QString.fromUtf8 to convert it to a QString. To do the reverse, I had to do 'unicode(strng.toUtf8(), "utf-8")'.
Quote & Reply
|
The Following User Says Thank You to Rob1n For This Useful Post:
Nathraiben
Rob1n
View Public Profile
Send a private message to Rob1n
Find all posts by Rob1n