BUG FIX: Save notes with "utf-8" format.
- Bug could cause notes to be erased on save.
This commit is contained in:
@@ -654,7 +654,7 @@ async def set_notes(request):
|
|||||||
os.remove(filename)
|
os.remove(filename)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
with open(filename, "w") as f:
|
with open(filename, "w", encoding="utf-8") as f:
|
||||||
f.write(text)
|
f.write(text)
|
||||||
except:
|
except:
|
||||||
web.json_response({ "success": False })
|
web.json_response({ "success": False })
|
||||||
|
|||||||
Reference in New Issue
Block a user