unicode hell

This commit is contained in:
Sean Dockray 2020-06-05 12:33:30 +10:00
parent 9f6bac915e
commit 95b5ac6aae
1 changed files with 1 additions and 1 deletions

View File

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