logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 16f2e346b3b5507034f6207e5d829cceaa99c046
parent: 94196c4b6c92da621b45db6332f594d59af52471
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Mon, 14 Nov 2016 15:52:29 +0100

[fix] bing unicode issue part III.

Diffstat:

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

diff --git a/searx/engines/bing.py b/searx/engines/bing.py @@ -33,10 +33,10 @@ def request(query, params): offset = (params['pageno'] - 1) * 10 + 1 if params['language'] != 'all': - query = u'language:{} {}'.format(params['language'].split('_')[0].upper(), query.decode('utf-8')) + query = u'language:{} {}'.format(params['language'].split('_')[0].upper(), query.decode('utf-8')).encode('utf-8') search_path = search_string.format( - query=urlencode({'q': query.encode('utf-8')}), + query=urlencode({'q': query}), offset=offset) params['url'] = base_url + search_path