From 5cbe4c53329a1fd2b949660fda25ff7a4ce6f254 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Wed, 30 Mar 2016 15:47:15 +0200 Subject: [PATCH] [fix] try to decode url - closes #527 --- searx/results.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/searx/results.py b/searx/results.py index 7e087382c..5d51eb5b5 100644 --- a/searx/results.py +++ b/searx/results.py @@ -116,6 +116,10 @@ class ResultContainer(object): self.results[engine_name].extend(results) for i, result in enumerate(results): + try: + result['url'] = result['url'].decode('utf-8') + except: + pass position = i + 1 self._merge_result(result, position)