Skip to content

Commit bc9cdb5

Browse files
committed
Merge branch 'master' of github.com:squidfunk/mkdocs-material
2 parents 4743c1b + 1be3932 commit bc9cdb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

material/plugins/blog/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def _path_to_file(self, path: str, config: MkDocsConfig, *, temp = True):
861861
# Create a file with the given content on disk
862862
def _save_to_file(self, path: str, content: str):
863863
os.makedirs(os.path.dirname(path), exist_ok = True)
864-
with open(path, "w") as f:
864+
with open(path, "w", encoding = "utf-8") as f:
865865
f.write(content)
866866

867867
# -------------------------------------------------------------------------

src/plugins/blog/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def _path_to_file(self, path: str, config: MkDocsConfig, *, temp = True):
861861
# Create a file with the given content on disk
862862
def _save_to_file(self, path: str, content: str):
863863
os.makedirs(os.path.dirname(path), exist_ok = True)
864-
with open(path, "w") as f:
864+
with open(path, "w", encoding = "utf-8") as f:
865865
f.write(content)
866866

867867
# -------------------------------------------------------------------------

0 commit comments

Comments
 (0)