diff --git a/searx/engines/bing.py b/searx/engines/bing.py index 75814a595..768cbdeb5 100644 --- 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) + query = u'language:{} {}'.format(params['language'].split('_')[0].upper(), query.decode('utf-8')) search_path = search_string.format( - query=urlencode({'q': query}), + query=urlencode({'q': query.encode('utf-8')}), offset=offset) params['url'] = base_url + search_path