forked from expo/troggle
utf debugging
This commit is contained in:
parent
328347f8af
commit
59a45871fd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user