From 332236b3fea1f1579d587edef8c5c36ac32f1fda Mon Sep 17 00:00:00 2001 From: AlexTracks <53616025+AlexTracks@users.noreply.github.com> Date: Tue, 6 Aug 2024 13:33:28 +0200 Subject: [PATCH] Update print_style.py add encoding='utf-8' to _log_html for Cyrillic ... --- python/helpers/print_style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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