Skip to content

Commit

Permalink
[CI] Fix utf-8 encoding issue in release test output file. (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-Yu authored Apr 28, 2024
1 parent f9cdcba commit 819eccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
def check_and_update_csv(file_path: str, data: dict):
file_exists = os.path.exists(file_path)

with open(file_path, mode="a" if file_exists else "w", newline="") as csvfile:
with open(file_path, mode="a" if file_exists else "w", newline="", encoding='utf-8-sig') as csvfile:
fieldnames = data.keys()
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)

Expand Down

0 comments on commit 819eccc

Please sign in to comment.