From d41395bbd13b1e4f92add7a75dd84b0507c706ce Mon Sep 17 00:00:00 2001 From: mwganson Date: Tue, 5 Apr 2022 16:05:36 -0500 Subject: [PATCH] Part: CheckGeometry handle non-ascii characters in object names when generating advanced shape content --- src/Mod/Part/Gui/TaskCheckGeometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/Gui/TaskCheckGeometry.cpp b/src/Mod/Part/Gui/TaskCheckGeometry.cpp index e032570616..322d0e3fb6 100644 --- a/src/Mod/Part/Gui/TaskCheckGeometry.cpp +++ b/src/Mod/Part/Gui/TaskCheckGeometry.cpp @@ -607,7 +607,7 @@ void TaskCheckGeometryResults::buildShapeContent(App::DocumentObject *pObject, c args.setItem(2, Py::Boolean(advancedShapeContent)); Py::Module shapecontent(module, true); Py::String result(shapecontent.callMemberFunction("buildShapeContent", args)); - stream << result.as_std_string("ascii"); + stream << result.as_std_string("utf-8"); } catch (Py::Exception&) { Base::PyException e;