From 9461eed380eae47b662760599a8e3399a4107597 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 30 Mar 2022 23:56:40 +0100 Subject: [PATCH] mole whacking --- core/views/expo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/expo.py b/core/views/expo.py index 7bad7f7..d439a9c 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -131,7 +131,7 @@ def expowebpage(request, expowebpath, path): except: try: with open(os.path.normpath(expowebpath / path), "rb") as o: - html = o.read() + html = str(o.read()) except: return HttpResponse(default_head + '

UTF-8 Parsing Failure:
Page could not be parsed using UTF-8:
failure detected in expowebpage in views.expo.py

Please edit this :expoweb: page to replace dubious umlauts and £ symbols with correct HTML entities e.g. £;.