From db663fe13436e9ea0d425ee7dd0fdcc8ff36736f Mon Sep 17 00:00:00 2001 From: d9394 <9394952@gmail.com> Date: Sun, 6 Oct 2019 16:05:30 +0800 Subject: [PATCH] Update controllers.py fix a bug with reading template file --- owrx/controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/controllers.py b/owrx/controllers.py index a3b232f..639b07d 100644 --- a/owrx/controllers.py +++ b/owrx/controllers.py @@ -101,7 +101,7 @@ class AprsSymbolsController(AssetsController): class TemplateController(Controller): def render_template(self, file, **vars): - f = open("htdocs/" + file, "r") + f = open("htdocs/" + file, "r", encoding="utf-8") template = Template(f.read()) f.close()