From 7ce211ff788a620973bb49157ee13c87ba4247da Mon Sep 17 00:00:00 2001 From: koniu Date: Sun, 15 Sep 2013 18:54:22 +0200 Subject: [PATCH] fix #16 cannot download files with special chars --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index 1178f25..59c7557 100755 --- a/webui.py +++ b/webui.py @@ -304,7 +304,7 @@ def edit(resnum): path = xt.idoctofile(doc.ipath, doc.mimetype) pathismine = True bottle.response.headers['Content-Disposition'] = \ - 'attachment; filename=%s' % os.path.basename(path) + 'attachment; filename=%s' % os.path.basename(path).encode('utf-8') print >> sys.stderr, "Sending %s with mimetype %s" % (path, doc.mimetype) f = open(path, 'r') if pathismine: