Browse Source

ddg encoding of URLs appears to be broken, revealed when trying to pickled the results to disk

Emmanuel Benazera 9 years ago
parent
commit
78a69e4c98
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/engines/duckduckgo.py

+ 1
- 1
searx/engines/duckduckgo.py View File

72
         # append result
72
         # append result
73
         results.append({'title': title,
73
         results.append({'title': title,
74
                         'content': content,
74
                         'content': content,
75
-                        'url': res_url})
75
+                        'url': res_url.encode('utf8')})
76
 
76
 
77
     # return results
77
     # return results
78
     return results
78
     return results