Skip to content

Commit 8c89c0d

Browse files
authored
Resolve default-encoding errors on Windows
1 parent cf96d20 commit 8c89c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def run(self):
522522
] = notebook_unique_name
523523
# Copy the Notebook for NotebookLite to find
524524
os.makedirs(notebooks_dir, exist_ok=True)
525-
with open(notebooks_dir / Path(notebook_unique_name), "w") as f:
525+
with open(notebooks_dir / Path(notebook_unique_name), "w", encoding="utf-8") as f:
526526
# nbf.write incorrectly formats multiline arrays in output.
527527
json.dump(nb, f, indent=4, ensure_ascii=False)
528528

0 commit comments

Comments
 (0)