From bd0a572faf851ee01177c44fc2fe64770ab4f38a Mon Sep 17 00:00:00 2001 From: Nicholas Staples Date: Wed, 20 Apr 2016 10:58:23 +0100 Subject: [PATCH] Add encoding to the documentation file. --- app/main/views/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/views/index.py b/app/main/views/index.py index d81bcdc23..540c9ef0b 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -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(