summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-15 22:36:48 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-15 22:36:48 +0200
commit15b8b7d9bbfce1835384f9e6c32550f8f4d01cc1 (patch)
tree7bf72153aee3638c7043f6da5e09b7fcf5cc75db /searx/webapp.py
parent4bf44076d4e12dd852612db5082fad451520d67d (diff)
[fix] unicode (en|de)coding
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index e0ff9a7d0..fb8e489e7 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -51,9 +51,9 @@ def index():
for pd_name,pd in request.form.items():
if pd_name.startswith('engine_'):
selected_engines.append(pd_name[7:])
- query = request.form['q']
+ query = request.form['q'].encode('utf-8')
results = search(query, request, selected_engines)
- return render('results.html', results=results, q=query)
+ return render('results.html', results=results, q=query.decode('utf-8'))
return render('index.html')
if __name__ == "__main__":