fix: fix content writing encoding on windows
This commit is contained in:
parent
1660e6944c
commit
2c3f9e38db
|
|
@ -120,5 +120,5 @@ class Context:
|
|||
template = self.__environment.get_template(source)
|
||||
content = template.render(context=self, **context)
|
||||
|
||||
with open(output_path, "w") as output_file:
|
||||
with open(output_path, "w", encoding="utf-8") as output_file:
|
||||
output_file.write(content)
|
||||
|
|
|
|||
Loading…
Reference in New Issue