add encoding parameter to .as_std_string()
to handle PyUnicode Objects. Usually ASCII for object names and Utf-8 for file names and console output. issue #995
This commit is contained in:
@@ -613,7 +613,7 @@ PyObject* Application::sAddWorkbenchHandler(PyObject * /*self*/, PyObject *args,
|
||||
// Search for some methods and members without invoking them
|
||||
Py::Callable(object.getAttr(std::string("Initialize")));
|
||||
Py::Callable(object.getAttr(std::string("GetClassName")));
|
||||
item = name.as_std_string();
|
||||
item = name.as_std_string("ascii");
|
||||
|
||||
PyObject* wb = PyDict_GetItemString(Instance->_pcWorkbenchDictionary,item.c_str());
|
||||
if (wb) {
|
||||
|
||||
Reference in New Issue
Block a user