From fbffbf0909012548dbd8b98ab809647dbcf9388e Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 27 Apr 2022 22:29:50 +0300 Subject: [PATCH] hack to make borken file less unreadable --- core/views/expo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/views/expo.py b/core/views/expo.py index 2b769db..68766a7 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -132,6 +132,7 @@ def expowebpage(request, expowebpath, path): try: with open(os.path.normpath(expowebpath / path), "rb") as o: html = str(o.read()).replace("

","

BAD NON-UTF-8 characters here - ") + html = html.replace("\\n","\n") 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. £;.