From 78a69e4c982d08a0fb49f1347d7f9db3b15d464f Mon Sep 17 00:00:00 2001 From: Emmanuel Benazera Date: Tue, 1 Sep 2015 16:47:56 +0200 Subject: [PATCH] ddg encoding of URLs appears to be broken, revealed when trying to pickled the results to disk --- searx/engines/duckduckgo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index 4ac2099ae..f18f3b446 100644 --- a/searx/engines/duckduckgo.py +++ b/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