This commit is contained in:
Philip Sargent 2022-04-27 23:43:15 +03:00
parent cafde67c02
commit 322d454d41

View File

@ -128,11 +128,6 @@ def expowebpage(request, expowebpath, path):
try: try:
with open(os.path.normpath(expowebpath / path), "r") as o: with open(os.path.normpath(expowebpath / path), "r") as o:
html = o.read() html = o.read()
except:
try:
with open(os.path.normpath(expowebpath / path), "r", encoding='iso-8859-1') as o:
html = o.read()
html = str(o.read()).replace("<h1>","<h1>ISO-8859-1 characters here - ")
except: except:
try: try:
with open(os.path.normpath(expowebpath / path), "rb") as o: with open(os.path.normpath(expowebpath / path), "rb") as o: