From 151ae3f7279b8cda9f11a4047dd69f8af1c95ecf Mon Sep 17 00:00:00 2001 From: alexvaut Date: Mon, 14 Aug 2023 11:27:50 +0200 Subject: [PATCH] encode in utf-8 before saving graph dot file --- src/rqt_graph/ros_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rqt_graph/ros_graph.py b/src/rqt_graph/ros_graph.py index 9cda91a..8f11420 100644 --- a/src/rqt_graph/ros_graph.py +++ b/src/rqt_graph/ros_graph.py @@ -411,7 +411,7 @@ def _save_dot(self): if not handle.open(QIODevice.WriteOnly | QIODevice.Text): return - handle.write(self._current_dotcode) + handle.write(self._current_dotcode.encode('utf-8')) handle.close() def _save_svg(self):