- migrating to unicode

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@329 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2011-10-15 21:45:33 +00:00
parent 24021ddeb0
commit 17452f1e0b
7 changed files with 112 additions and 75 deletions

View File

@@ -31,8 +31,8 @@ except:
def get_py_str(a):
'''Returns a python string out of a QString'''
if pyqt:
return str(a.toUtf8())
return str(a.encode("utf-8")) #Already a python string in PySide
return unicode(a.toUtf8(),'utf-8')
return unicode(a.encode("utf-8")) #Already a python string in PySide
def set_utf8_text(component,text):
if not pyqt: