diff --git a/eval.py b/eval.py index cb3a9f8c..1677daab 100644 --- a/eval.py +++ b/eval.py @@ -93,7 +93,7 @@ def create_report(test, baseline, sample_rollouts, costs, num_segs): res.append(f'Plot') res.append("") - with open("report.html", "w") as fob: + with open("report.html", "w", encoding='utf-8') as fob: fob.write("\n".join(res)) print("Report saved to: './report.html'")