ugg maintinaing multiple versions

This commit is contained in:
Sean Dockray 2020-06-08 23:06:07 +10:00
parent 249d950a70
commit 602578010a
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ def notion_to_md(id, filepath=None, yaml_func=None):
# print(page_data)
if filepath:
os.umask(0)
with open(os.open(filepath, os.O_CREAT | os.O_WRONLY, 0o777), 'w') as f:
with open(os.open(filepath, os.O_CREAT | os.O_WRONLY, 0o777), 'w', encoding="utf-8") as f:
f.write(page_content)
return page_data