From a43c0a9b9cba9d8e596840a29c639373fc82d7a2 Mon Sep 17 00:00:00 2001 From: Hannes Braun Date: Thu, 21 Nov 2024 16:06:47 +0100 Subject: [PATCH] Read files for visualization with utf-8 encoding --- pytrace-generator/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytrace-generator/main.py b/pytrace-generator/main.py index ec0bd75d..13618915 100644 --- a/pytrace-generator/main.py +++ b/pytrace-generator/main.py @@ -428,7 +428,7 @@ def run_script(self, filename, script_str): exit(1) filename = os.path.abspath(sys.argv[1]) -with open(filename, "r") as f: +with open(filename, "r", encoding="utf-8") as f: script_str = f.read() # Add a 'pass' at the end to also get the last trace step