unicode into file
This commit is contained in:
parent
b3ca36ac5c
commit
3a3d3628c3
|
@ -177,7 +177,7 @@ def notion_to_md(id, filepath=None, yaml_func=None):
|
||||||
if filepath:
|
if filepath:
|
||||||
os.umask(0)
|
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') as f:
|
||||||
f.write(page_content)
|
f.write(page_content.encode('utf8'))
|
||||||
return page_data
|
return page_data
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue