From b3923cee0742c2e3fe8aca48a2fa410b747fd6a3 Mon Sep 17 00:00:00 2001 From: Pramit Mazumder Date: Tue, 20 Aug 2024 07:02:16 -0700 Subject: [PATCH] open with utf-8 encoding (#25) --- eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'")