mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[fix] bing unicode issue part III.
This commit is contained in:
parent
94196c4b6c
commit
16f2e346b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user