Merge pull request #16 from d9394/develop
explicitly specify encoding since the default is platform-dependent
This commit is contained in:
commit
6adbc6c291
@ -101,7 +101,7 @@ class AprsSymbolsController(AssetsController):
|
|||||||
|
|
||||||
class TemplateController(Controller):
|
class TemplateController(Controller):
|
||||||
def render_template(self, file, **vars):
|
def render_template(self, file, **vars):
|
||||||
f = open("htdocs/" + file, "r")
|
f = open("htdocs/" + file, "r", encoding="utf-8")
|
||||||
template = Template(f.read())
|
template = Template(f.read())
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user