Switching Quantity parser to UTF8

This commit is contained in:
jriegel
2013-12-09 23:49:42 +01:00
parent df363e94f3
commit 401cb13035
9 changed files with 12 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ int UnitPy::PyInit(PyObject* args, PyObject* kwd)
const char* string;
if (PyArg_ParseTuple(args,"s", &string)) {
*self = Quantity::parse(string).getUnit();
*self = Quantity::parse(QString::fromLatin1(string)).getUnit();
return 0;
}