diff --git a/site.py b/site.py index aac5d0c..d012da9 100644 --- a/site.py +++ b/site.py @@ -1,5 +1,6 @@ from milla.dispatch import routing from webob import acceptparse +import codecs import jinja2 import milla import os @@ -24,7 +25,8 @@ env = jinja2.Environment( ) -with open(os.path.join(os.path.dirname(__file__), 'songquotes.yml')) as f: +songquotes = os.path.join(os.path.dirname(__file__), 'songquotes.yml') +with codecs.open(songquotes, 'r', encoding='utf-8') as f: songquotes = yaml.load(f, Loader=YamlLoader)