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

@@ -72,7 +72,7 @@ def response(resp):
         # append result
         results.append({'title': title,
                         'content': content,
-                        'url': res_url})
+                        'url': res_url.encode('utf8')})
 
     # return results
     return results