From 9c8518499ed6470eca63aa2c326ca8ef3240da11 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Mon, 15 Feb 2016 21:59:02 -0500 Subject: [PATCH] help: Specify encoding when opening manual file - Closes #404. --- plinth/modules/help/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/help/help.py b/plinth/modules/help/help.py index 4ffe73e87..0f8aa3f52 100644 --- a/plinth/modules/help/help.py +++ b/plinth/modules/help/help.py @@ -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