From cb998fe376463cd803b1d0dbdbf18298b95056f3 Mon Sep 17 00:00:00 2001 From: gptlang <121417512+gptlang@users.noreply.github.com> Date: Mon, 5 Feb 2024 06:35:47 +0000 Subject: [PATCH] experiment with utf-8 encoding to see if efforts were wasted --- rplugin/python3/handlers/chat_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rplugin/python3/handlers/chat_handler.py b/rplugin/python3/handlers/chat_handler.py index 3fe7b3d2..7a8ec7a0 100644 --- a/rplugin/python3/handlers/chat_handler.py +++ b/rplugin/python3/handlers/chat_handler.py @@ -229,7 +229,7 @@ def _add_chat_messages( last_line_col, last_line_row, last_line_col, - token.split("\n"), + [tok.encode("utf-8") for tok in token.split("\n")], ) def _add_end_separator(self, model: str, no_annoyance: bool = False):