Skip to content

Commit

Permalink
Force UTF-8 encoding for attribute-context viz
Browse files Browse the repository at this point in the history
  • Loading branch information
gsarti committed Feb 28, 2024
1 parent 6e94e11 commit f4d82b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def visualize_attribute_context(
console.print(viz, soft_wrap=False)
html = console.export_html()
if output.info.viz_path:
with open(output.info.viz_path, "w") as f:
with open(output.info.viz_path, "w", encoding="utf-8") as f:
f.write(html)
if output.info.show_viz:
console.print(viz, soft_wrap=False)
Expand Down

0 comments on commit f4d82b8

Please sign in to comment.