summaryrefslogtreecommitdiff
path: root/searx/engines/wolframalpha_noapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/wolframalpha_noapi.py')
-rw-r--r--searx/engines/wolframalpha_noapi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.py
index 0f0315630..71ad3b281 100644
--- a/searx/engines/wolframalpha_noapi.py
+++ b/searx/engines/wolframalpha_noapi.py
@@ -73,11 +73,11 @@ def response(resp):
results.append({'answer': answer})
# user input is in first part of title
- title = dom.xpath(title_xpath)[0].text
+ title = dom.xpath(title_xpath)[0].text.encode('utf-8')
result_url = request(title[:-16], {})['url']
# append result
results.append({'url': result_url,
- 'title': title})
+ 'title': title.decode('utf-8')})
return results