You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "\spring-ai\chat.py", line 665, in
chatbot.chat(prompt, persistence_enabled=persistence_enabled)
File "spring-ai\chat.py", line 623, in chat
save_response_to_markdown_file(self.messages[-1].content)
File \spring-ai\helpers.py", line 17, in save_response_to_markdown_file
file.write(response_string)
File "\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 1-2: character maps to
The text was updated successfully, but these errors were encountered:
simplest approach is likely changing a couple lines in helpers.py: with open(filename, "w", encoding="utf-8") as file: in the couple functions where its applicable for markdown files. It should fix the unicode errors!
Traceback (most recent call last):
File "\spring-ai\chat.py", line 665, in
chatbot.chat(prompt, persistence_enabled=persistence_enabled)
File "spring-ai\chat.py", line 623, in chat
save_response_to_markdown_file(self.messages[-1].content)
File \spring-ai\helpers.py", line 17, in save_response_to_markdown_file
file.write(response_string)
File "\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 1-2: character maps to
The text was updated successfully, but these errors were encountered: