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: