help: Specify encoding when opening manual file

- Closes #404.
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2016-02-16 08:43:27 +05:30
1 parent 2fb25e1e50
commit 9c8518499e
1 file changed
+2 -2
+2 -2
View File
@@ -62,8 +62,8 @@ def about(request):
def manual(request):
"""Serve the manual page from the 'doc' directory"""
try:
with open(os.path.join(cfg.doc_dir, 'freedombox-manual.part.html'), 'r') \
as input_file:
with open(os.path.join(cfg.doc_dir, 'freedombox-manual.part.html'),
'r', encoding='utf-8') as input_file:
content = input_file.read()
except IOError:
raise Http404