lost a couple important changes related to unicode
This commit is contained in:
parent
b0dc74872d
commit
cc2accb81c
|
@ -190,7 +190,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
|
||||
|
||||
|
|
Loading…
Reference in New Issue