forked from expo/troggle
utf debugging
This commit is contained in:
parent
328347f8af
commit
59a45871fd
@ -224,7 +224,7 @@ def expopage(request, path):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
t = type(filetobeopened)
|
t = type(filetobeopened)
|
||||||
content = open(filetobeopened, "rb")
|
content = open(filetobeopened.encode('utf8'), "rb")
|
||||||
content_type=getmimetype(path)
|
content_type=getmimetype(path)
|
||||||
return HttpResponse(content = content, content_type=content_type)
|
return HttpResponse(content = content, content_type=content_type)
|
||||||
except IOError:
|
except IOError:
|
||||||
|
Loading…
Reference in New Issue
Block a user