Update print_style.py

add encoding='utf-8' to _log_html for Cyrillic ...

AlexTracks committed Aug 6, 2024 at 13:33 UTC 332236b3fea1f1579d587edef8c5c36ac32f1fda
1 file changed +1 -1
python/helpers/print_style.py
+1 -1
@@ -81,7 +81,7 @@ class PrintStyle:
81 self.padding_added = True
82
83 def _log_html(self, html):
84 - with open(PrintStyle.log_file_path, "a") as f: # type: ignore
84 + with open(PrintStyle.log_file_path, "a", encoding='utf-8') as f: # type: ignore # add encoding='utf-8'
85 f.write(html)
86
87 @staticmethod