diff --git a/cli/main.py b/cli/main.py index fb97d189..02a6bbb4 100644 --- a/cli/main.py +++ b/cli/main.py @@ -948,7 +948,7 @@ def run_analysis(): func(*args, **kwargs) timestamp, message_type, content = obj.messages[-1] content = content.replace("\n", " ") # Replace newlines with spaces - with open(log_file, "a") as f: + with open(log_file, "a", encoding="utf-8") as f: f.write(f"{timestamp} [{message_type}] {content}\n") return wrapper