[fix] unicode search expression for bing

This commit is contained in:
Adam Tauber 2016-11-07 22:33:17 +01:00
parent 16ff8d06c7
commit 17b08d096c
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def request(query, params):
offset = (params['pageno'] - 1) * 10 + 1 offset = (params['pageno'] - 1) * 10 + 1
if params['language'] != 'all': if params['language'] != 'all':
query = 'language:{} {}'.format(params['language'].split('_')[0].upper(), query) query = u'language:{} {}'.format(params['language'].split('_')[0].upper(), query)
search_path = search_string.format( search_path = search_string.format(
query=urlencode({'q': query}), query=urlencode({'q': query}),