diff --git a/core/views/expo.py b/core/views/expo.py index 66dffd0..6256aab 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -1,6 +1,9 @@ import os import re import subprocess + +from sys import getfilesystemencoding as sys_getfilesystemencoding + from pathlib import Path from urllib.parse import urljoin, unquote as urlunquote from urllib.request import urlopen @@ -125,7 +128,12 @@ def expowebpage(request, expowebpath, path): # Should not get here if the path has suffix "_edit" print(f' - 404 error in expowebpage() {path}') return render(request, 'pagenotfound.html', {'path': path}, status="404") - + + # print(f' - {sys_getfilesystemencoding()=}') + if (sys_getfilesystemencoding() != "utf-8"): + return HttpResponse(default_head + '