logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 15b8b7d9bbfce1835384f9e6c32550f8f4d01cc1
parent: 4bf44076d4e12dd852612db5082fad451520d67d
Author: asciimoo <asciimoo@gmail.com>
Date:   Tue, 15 Oct 2013 22:36:48 +0200

[fix] unicode (en|de)coding

Diffstat:

Msearx/webapp.py4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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__":