help: Specify encoding when opening manual file

- Closes #404.
This commit is contained in:
James Valleroy 2016-02-15 21:59:02 -05:00 committed by Sunil Mohan Adapa
parent 2fb25e1e50
commit 9c8518499e
No known key found for this signature in database
GPG Key ID: 36C361440C9BC971

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