diff --git a/jweb/context.py b/jweb/context.py index 26e5fbe..9242c65 100644 --- a/jweb/context.py +++ b/jweb/context.py @@ -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)