Parcourir la source

[fix] unicode search expression for bing

Adam Tauber il y a 8 ans
Parent
révision
17b08d096c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      searx/engines/bing.py

+ 1
- 1
searx/engines/bing.py Voir le fichier

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