summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-03-16 10:43:28 +0100
committerAdam Tauber <asciimoo@gmail.com>2016-03-16 10:43:28 +0100
commit0f518e489ed1461282bc32a9a1faf310feebb1ba (patch)
tree45bc6823dc73ce685cf2a1b91f9fbc5a6cf35e20 /searx/webapp.py
parente893d941852f89111ea5c2626cd0cdb40a8f9acd (diff)
[fix] csv results filename encoding
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 665eeef24..66ba65a29 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -433,7 +433,7 @@ def index():
csv.writerow([row.get(key, '') for key in keys])
csv.stream.seek(0)
response = Response(csv.stream.read(), mimetype='application/csv')
- cont_disp = 'attachment;Filename=searx_-_{0}.csv'.format(search.query)
+ cont_disp = 'attachment;Filename=searx_-_{0}.csv'.format(search.query.encode('utf-8'))
response.headers.add('Content-Disposition', cont_disp)
return response
elif search.request_data.get('format') == 'rss':