summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 1efa0e6..277cb7f 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -342,6 +342,12 @@ def editexpopage(request, path):
pageform = ExpoPageForm({"html": body, "title": title})
else:
body = "### File not found ###\n" + str(filepath)
+ import sys
+ import locale
+ body = body + "\nsys.getdefaultencoding() = " + sys.getdefaultencoding()
+ body = body + "\nsys.getfilesystemencoding() = " + sys.getfilesystemencoding()
+ body = body + "\nlocale.getdefaultlocale() = " + locale.getdefaultlocale()
+ body = body + "\nlocale.getpreferredencoding() = " + locale.getpreferredencoding()
pageform = ExpoPageForm({"html": body, "title": "Missing"})
return render(request, 'editexpopage.html', {'path': path, 'form': pageform, })