Salome HOME
Unicode support: correct handling of unicode on GUI level
[modules/gui.git] / src / Plot2d / Plot2d_AnalyticalParser.cxx
index 09f963b80935a21f1d8deed5b5bfd953d39ec540..a8de35e8268d54f2da1ff84c683dcba8c11f96b7 100755 (executable)
@@ -182,7 +182,7 @@ int Plot2d_AnalyticalParser::calculate( const QString& theExpr,
   aPyScript = aPyScript.arg(theExpr);
   int result = -1;
   PyGILState_STATE gstate = PyGILState_Ensure();
-  PyObject* obj = PyRun_String(qPrintable(aPyScript), Py_file_input, myMainDict, NULL);
+  PyObject* obj = PyRun_String(qUtf8Printable(aPyScript), Py_file_input, myMainDict, NULL);
 
   if(obj == NULL) {
     PyErr_Print();