fix: fix content writing encoding on windows

This commit is contained in:
Corentin 2024-05-31 19:32:28 +02:00
parent 1660e6944c
commit 2c3f9e38db
1 changed files with 1 additions and 1 deletions

View File

@ -120,5 +120,5 @@ class Context:
template = self.__environment.get_template(source) template = self.__environment.get_template(source)
content = template.render(context=self, **context) 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) output_file.write(content)