fix(agbench): add encoding='utf-8' to open() calls in GAIA benchmark scripts
Addresses #5566
Problem
Several open() calls in the GAIA benchmark scripts omit an explicit encoding parameter. Python uses the system default locale encoding when none is specified, which is not UTF-8 on many Windows installations. This causes UnicodeDecodeError when reading files containing non-ASCII characters in non-English environments.
Affected files:
benchmarks/GAIA/Scripts/custom_tabulate.pybenchmarks/GAIA/Scripts/init_tasks.pybenchmarks/GAIA/Templates/MagenticOne/scenario.py
Fix
Add encoding='utf-8' to all open() calls in the above files. This is consistent with the fix in PR #7648 which addressed the same issue in task_centric_memory utilities.
@microsoft-github-policy-service agree
ใช้ NEXORA stack บน Windows locale ไทย
Hi! Just checking in on this one. The fix prevents UnicodeDecodeError on Windows systems with non-English locales when running GAIA benchmark scripts. Happy to add tests or adjust if there's a preferred approach. Thanks!