diff --git a/core/views/expo.py b/core/views/expo.py index 05e3642..b419e48 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -226,7 +226,7 @@ def expopage(request, path): filetobeopened = os.path.normpath(expowebpath / path) try: - content = open(filetobeopened.encode(sysdefaultencoding), "rb") + content = open(filetobeopened, "rb") content_type=getmimetype(path) return HttpResponse(content = content, content_type=content_type) except IOError: