utf debugging

This commit is contained in:
Martin Green 2022-06-18 23:37:37 +01:00
parent 328347f8af
commit 59a45871fd

View File

@ -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: