Skip to content

Commit 2df8cdb

Browse files
committed
Unicode fix attempt 2
1 parent 05624e6 commit 2df8cdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: generate.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __hash__(self):
116116
\\printbibliography[title={year}, heading=bibliography]
117117
\\end{{refsection}}
118118
"""
119-
texBibFileStr = texBibFileStr.encode("ascii", "backslashreplace").decode()
119+
texBibFile = texBibFileStr.encode("ascii", "backslashreplace")
120120
#write the tex file
121-
with open("publications.tex", "w") as f:
122-
f.write(texBibFileStr)
121+
with open("publications.tex", "wb") as f:
122+
f.write(texBibFile)

0 commit comments

Comments
 (0)