diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-11-14 15:47:42 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2016-11-14 15:47:42 +0100 |
| commit | 1176505fa4d58677ca05e7a1c27ee459d86275aa (patch) | |
| tree | 9fe5ea2866c18b67fce7b09af89278827b51996c | |
| parent | 17b08d096c5d7823799cdd6eab7fe67ef9941f9f (diff) | |
[fix] bing character encoding - closes #760
| -rw-r--r-- | searx/engines/bing.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |