Salome HOME
Unicode support: correct handling of unicode on GUI level
[modules/gui.git] / src / SUITApp / SUITApp_init_python.cxx
index 3724dd562f3ecacc73f235f0909820712faed73c..0a10ff7c7b0247a7ec94d0b8030090dc225e0bbe 100644 (file)
@@ -67,7 +67,7 @@ void SUIT_PYTHON::init_python(int argc, char **argv)
   script += "import sys\n";
   script += "sys.excepthook = _custom_except_hook\n";
   script += "del _custom_except_hook, sys\n";
-  int res = PyRun_SimpleString(qPrintable(script));
+  int res = PyRun_SimpleString(qUtf8Printable(script));
   // VSR (22/09/2016): end of workaround
   PyEval_InitThreads(); // Create (and acquire) the interpreter lock - can be called many times
   // Py_InitThreads acquires the GIL