diff --git a/src/Base/Interpreter.cpp b/src/Base/Interpreter.cpp index f54d4367ed..7e8b9f1cfc 100644 --- a/src/Base/Interpreter.cpp +++ b/src/Base/Interpreter.cpp @@ -326,7 +326,7 @@ std::string InterpreterSingleton::runStringWithKey(const char *psCmd, const char #if PY_MAJOR_VERSION >= 3 PyObject* str = PyUnicode_AsEncodedString(key_return_value, "utf-8", "~E~"); #else - PyObject* str = PyString_FromString(key_return_value, "utf-8", "~E~"); + PyObject* str = PyString_FromString(key_return_value); #endif const char* result = PyBytes_AS_STRING(str); return result;