Skip to content

Agent Zero AI framework

Update print_style.py

AlexTracks332236b3fea1
diff --git a/python/helpers/print_style.py b/python/helpers/print_style.py
index 8b64d3e93..e54f4fe08 100644
--- a/python/helpers/print_style.py
+++ b/python/helpers/print_style.py
@@ -81,7 +81,7 @@ class PrintStyle:
self.padding_added = True
def _log_html(self, html):
- with open(PrintStyle.log_file_path, "a") as f: # type: ignore
+ with open(PrintStyle.log_file_path, "a", encoding='utf-8') as f: # type: ignore # add encoding='utf-8'
f.write(html)
@staticmethod