diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index 73dbad52f0..5c2451b86a 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -1180,7 +1180,7 @@ bool Application::activateWorkbench(const char* name) } catch (Py::Exception&) { Base::PyException e; // extract the Python error text - QString msg = QString::fromLatin1(e.what()); + QString msg = QString::fromUtf8(e.what()); QRegExp rx; // ignore '' prefixes rx.setPattern(QLatin1String("^\\s*:\\s*")); @@ -1190,7 +1190,7 @@ bool Application::activateWorkbench(const char* name) pos = rx.indexIn(msg); } - Base::Console().Error("%s\n", (const char*)msg.toLatin1()); + Base::Console().Error("%s\n", (const char*)msg.toUtf8()); if (!d->startingUp) Base::Console().Error("%s\n", e.getStackTrace().c_str()); else