Merge pull request #16 from d9394/develop

explicitly specify encoding since the default is platform-dependent
This commit is contained in:
Jakob Ketterl 2019-10-06 11:01:22 +02:00 committed by GitHub
commit 6adbc6c291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()