We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 873f9b7 + 8fecf22 commit 2a4ee76Copy full SHA for 2a4ee76
execnb/nbio.py
@@ -91,6 +91,6 @@ def write_nb(nb, path):
91
"Write `nb` to `path`"
92
new = nb2str(nb)
93
path = Path(path)
94
- old = Path(path).read_text() if path.exists() else None
+ old = Path(path).read_text(encoding="utf-8") if path.exists() else None
95
if new!=old:
96
with open(path, 'w', encoding='utf-8') as f: f.write(new)
0 commit comments