Base: Remove weird error parameter from encode

This commit is contained in:
wmayer
2025-04-04 20:04:18 +02:00
committed by Benjamin Nauck
parent 231680c9ce
commit 2fe7b30ee9

View File

@@ -304,7 +304,7 @@ std::string InterpreterSingleton::runStringWithKey(const char* psCmd,
key_return_value = key_return_value.str(); // NOLINT
}
Py::Bytes str = Py::String(key_return_value).encode("utf-8", "~E~");
Py::Bytes str = Py::String(key_return_value).encode("utf-8");
std::string result = static_cast<std::string>(str);
return result;
}