diff --git a/samples/tools/autogenbench/autogenbench/run_cmd.py b/samples/tools/autogenbench/autogenbench/run_cmd.py index d4f6d3face3e..e548a16b8f91 100644 --- a/samples/tools/autogenbench/autogenbench/run_cmd.py +++ b/samples/tools/autogenbench/autogenbench/run_cmd.py @@ -492,7 +492,7 @@ def run_scenario_in_docker(work_dir, env, timeout=TASK_TIMEOUT, docker_image=Non docker_timeout = timeout + 60 # One full minute after the bash timeout command should have already triggered start_time = time.time() logs = container.logs(stream=True) - log_file = open(os.path.join(work_dir, "console_log.txt"), "wt") + log_file = open(os.path.join(work_dir, "console_log.txt"), "wt", encoding="utf-8") stopping = False for chunk in logs: # When streaming it should return a generator