summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-18 23:37:37 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-18 23:37:37 +0100
commit59a45871fd4c3c17b5a6936cc7757b20b55a368e (patch)
tree1e0f141008f258c527400ab40d355a094e6aa711 /core/views/expo.py
parent328347f8af133c0fe33390a0d8ea19424910b0ae (diff)
downloadtroggle-59a45871fd4c3c17b5a6936cc7757b20b55a368e.tar.gz
troggle-59a45871fd4c3c17b5a6936cc7757b20b55a368e.tar.bz2
troggle-59a45871fd4c3c17b5a6936cc7757b20b55a368e.zip
utf debugging
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index adfcf23..f225c93 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -224,7 +224,7 @@ def expopage(request, path):
try:
t = type(filetobeopened)
- content = open(filetobeopened, "rb")
+ content = open(filetobeopened.encode('utf8'), "rb")
content_type=getmimetype(path)
return HttpResponse(content = content, content_type=content_type)
except IOError: