summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Benazera <beniz@droidnik.fr>2015-09-01 16:47:56 +0200
committerEmmanuel Benazera <beniz@droidnik.fr>2015-09-01 16:50:54 +0200
commit78a69e4c982d08a0fb49f1347d7f9db3b15d464f (patch)
treee32be59d51b682273857dbcbe3624b05a398049b
parentf094188780c41d665d08c7aa159968a81ca135ed (diff)
downloadsearxng-78a69e4c982d08a0fb49f1347d7f9db3b15d464f.tar.gz
searxng-78a69e4c982d08a0fb49f1347d7f9db3b15d464f.zip
ddg encoding of URLs appears to be broken, revealed when trying to pickled the results to disk
-rw-r--r--searx/engines/duckduckgo.py2
1 files changed, 1 insertions, 1 deletions
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