diff --git a/py_trees/display.py b/py_trees/display.py index e718b50b..bb75a9c5 100644 --- a/py_trees/display.py +++ b/py_trees/display.py @@ -753,7 +753,7 @@ def render_dot_tree( filename = filename_wo_extension + "." + extension pathname = os.path.join(target_directory, filename) print("Writing {}".format(pathname)) - writer(pathname) + writer(pathname, encoding="utf-8") filenames[extension] = pathname return filenames