From 2b9862d29073e31cc89e807fd355a691b0d932dd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 17 Apr 2023 16:40:57 +0200 Subject: Fix changelog read (explicit utf8 coding on opening) --- ishtar_common/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/views.py') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index a49dc7aee..ba205abf3 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -1191,7 +1191,7 @@ class ChangelogView(IshtarMixin, LoginRequiredMixin, TemplateView): if not current_file: raise Http404() changelog_file = os.path.join(changelog_dir, current_file) - with open(changelog_file, "r") as changelog: + with open(changelog_file, "r", encoding="utf-8") as changelog: context["changelog"] = markdown(changelog.read()) if page_number > 1: context["next"] = page_number - 1 -- cgit v1.2.3