Fixed encoding in code

This commit is contained in:
Saifeddine ALOUI 2023-12-12 22:21:44 +01:00
parent 973c9a1a21
commit cdf3162965

2
app.py
View File

@ -530,7 +530,7 @@ try:
root_folder = self.lollms_paths.personal_outputs_path/"discussions"/f"d_{discussion_id}"
root_folder.mkdir(parents=True,exist_ok=True)
tmp_file = root_folder/f"ai_code_{message_id}.py"
with open(tmp_file,"w") as f:
with open(tmp_file,"w",encoding="utf8") as f:
f.write(code)
try: