Skip to content

Commit

Permalink
Add encoding at download yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jsummer committed Oct 30, 2024
1 parent c4feb9e commit 512c741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app_utils/shared_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ def download_yaml(file_name: str, stage_name: str) -> str:
)

tmp_file_path = os.path.join(temp_dir, f"{file_name}")
with open(tmp_file_path, "r") as temp_file:
with open(tmp_file_path, "r", encoding='utf-8') as temp_file:
# Read the raw contents from {temp_dir}/{file_name} and return it as a string.
yaml_str = temp_file.read()
return yaml_str
Expand Down

0 comments on commit 512c741

Please sign in to comment.