From f8e6991fe40cd9874b26646031a62047ddb34085 Mon Sep 17 00:00:00 2001 From: Abdullah Aljelamneh Date: Thu, 8 Oct 2026 20:18:59 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Read=20email=20templates=20as=20?= =?UTF-8?q?UTF-8=20to=20fix=20UnicodeDecodeError=20on=20Windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/utils.py b/backend/app/utils.py index d59aefc7bf..9c71c29b6e 100644 --- a/backend/app/utils.py +++ b/backend/app/utils.py @@ -25,7 +25,7 @@ class EmailData: def render_email_template(*, template_name: str, context: dict[str, Any]) -> str: template_str = ( Path(__file__).parent / "email-templates" / template_name - ).read_text() + ).read_text(encoding="utf-8") template: Template = Template(template_str) html_content = template.render(context) return html_content