From 2c3f9e38db334f068b190de7435f06053b418f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20S=C3=A9chet?= Date: Fri, 31 May 2024 19:32:28 +0200 Subject: [PATCH] fix: fix content writing encoding on windows --- jweb/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)