BUG FIX: Save notes with "utf-8" format.

- Bug could cause notes to be erased on save.
This commit is contained in:
Christian Bastian
2024-02-21 14:37:53 -05:00
parent a72fe681b5
commit c4b6ddd5ca

View File

@@ -654,7 +654,7 @@ async def set_notes(request):
os.remove(filename)
else:
try:
with open(filename, "w") as f:
with open(filename, "w", encoding="utf-8") as f:
f.write(text)
except:
web.json_response({ "success": False })