From ac124cd3d70ab9007b1a9adc5da7cea64c0864c4 Mon Sep 17 00:00:00 2001 From: stonebig Date: Sun, 11 Apr 2021 19:17:42 +0200 Subject: [PATCH] use utf-8 as Windows-10 didn't like character '\u2295' --- roboticstoolbox/robot/ERobot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roboticstoolbox/robot/ERobot.py b/roboticstoolbox/robot/ERobot.py index c73b2f797..53929dbe9 100644 --- a/roboticstoolbox/robot/ERobot.py +++ b/roboticstoolbox/robot/ERobot.py @@ -760,7 +760,7 @@ def dotfile(self, filename, etsbox=False, jtype=False, static=True): :seealso: :func:`showgraph` """ if isinstance(filename, str): - file = open(filename, 'w') + file = open(filename, 'w', encoding='utf-8') else: file = filename