ソースを参照

[fix] unicode search expression for bing

Adam Tauber 8 年 前
コミット
17b08d096c
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      searx/engines/bing.py

+ 1
- 1
searx/engines/bing.py ファイルの表示

@@ -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}),