Skip to content

Commit ccfc69b

Browse files
committed
2 parents abb7605 + 27a68c8 commit ccfc69b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

markdown_generator/PubsFromBib.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
"\n",
183183
" md_filename = os.path.basename(md_filename)\n",
184184
"\n",
185-
" with open(\"../_publications/\" + md_filename, 'w') as f:\n",
185+
" with open(\"../_publications/\" + md_filename, 'w', encoding=\"utf-8\") as f:\n",
186186
" f.write(md)\n",
187187
" print(f'SUCESSFULLY PARSED {bib_id}: \\\"', b[\"title\"][:60],\"...\"*(len(b['title'])>60),\"\\\"\")\n",
188188
" # field may not exist for a reference\n",
@@ -220,4 +220,4 @@
220220
},
221221
"nbformat": 4,
222222
"nbformat_minor": 2
223-
}
223+
}

markdown_generator/pubsFromBib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def html_escape(text):
151151

152152
md_filename = os.path.basename(md_filename)
153153

154-
with open("../_publications/" + md_filename, 'w') as f:
154+
with open("../_publications/" + md_filename, 'w', encoding="utf-8") as f:
155155
f.write(md)
156156
print(f'SUCESSFULLY PARSED {bib_id}: \"', b["title"][:60],"..."*(len(b['title'])>60),"\"")
157157
# field may not exist for a reference

0 commit comments

Comments
 (0)