Merge pull request #473 from alphagov/doc_page_fix

Add encoding to the documentation file.
This commit is contained in:
NIcholas Staples
2016-04-20 11:05:59 +01:00

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(