Add encoding to the documentation file.

This commit is contained in:
Nicholas Staples
2016-04-20 10:58:23 +01:00
parent 9b75f7ef8a
commit bd0a572faf

View File

@@ -44,7 +44,7 @@ def terms():
@main.route('/documentation')
def documentation():
curr_dir = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(curr_dir, '../../../docs/index.md')) as source:
with open(os.path.join(curr_dir, '../../../docs/index.md'), encoding='utf-8') as source:
return render_template(
'views/documentation.html',
body=Markup(markdown.markdown(