From 395188043bf30e59aaec0dab0331d876ea68792d Mon Sep 17 00:00:00 2001 From: muravvv <50175509+muravvv@users.noreply.github.com> Date: Wed, 28 May 2025 12:29:02 +0300 Subject: [PATCH] set fixed utf-8 encoding for llm history log --- aider/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index f28a1c86d..79f0b0c53 100644 --- a/aider/io.py +++ b/aider/io.py @@ -749,7 +749,7 @@ class InputOutput: if not self.llm_history_file: return timestamp = datetime.now().isoformat(timespec="seconds") - with open(self.llm_history_file, "a", encoding=self.encoding) as log_file: + with open(self.llm_history_file, "a", encoding="utf-8") as log_file: log_file.write(f"{role.upper()} {timestamp}\n") log_file.write(content + "\n")