fix: add utf-8 encoding to report file writes

This commit is contained in:
Atharva Joshi 2026-04-16 05:42:26 -04:00
parent fa4d01c23a
commit 0722809543
1 changed files with 1 additions and 1 deletions

View File

@ -1005,7 +1005,7 @@ def run_analysis():
if content:
file_name = f"{section_name}.md"
text = "\n".join(str(item) for item in content) if isinstance(content, list) else content
with open(report_dir / file_name, "w") as f:
with open(report_dir / file_name, "w", encoding="utf-8") as f:
f.write(text)
return wrapper