diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-22 08:52:04 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-22 08:52:04 +0100 |
commit | 836387057a9be58e990325c9461db0923127fa6d (patch) | |
tree | 3715852edc5372112cb5ceea4fdbd38cdc6ed338 /core/views/expo.py | |
parent | f0a9c337956327923363543ae25d7c59c1f9a8cc (diff) | |
download | troggle-836387057a9be58e990325c9461db0923127fa6d.tar.gz troggle-836387057a9be58e990325c9461db0923127fa6d.tar.bz2 troggle-836387057a9be58e990325c9461db0923127fa6d.zip |
Now the servers locale is utf8, try opening files spectifying path using a text string
Diffstat (limited to 'core/views/expo.py')
-rw-r--r-- | core/views/expo.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |