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