[fix] unicode (en|de)coding

This commit is contained in:
asciimoo 2013-10-15 22:36:48 +02:00
parent 4bf44076d4
commit 15b8b7d9bb

View file

@ -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__":