diff options
author | a01200356 <a01200356@itesm.mx> | 2016-01-03 19:57:37 -0600 |
---|---|---|
committer | a01200356 <a01200356@itesm.mx> | 2016-01-03 19:57:37 -0600 |
commit | d997265e5599333b4316561ca18a8f4131e3e2d9 (patch) | |
tree | e8535e820ac7b5b9dd037601222b04ea0a9fc09e /searx/engines/wolframalpha_noapi.py | |
parent | e5d51a0e98a2bcb99166136dcc66856781caa4c8 (diff) | |
download | searxng-d997265e5599333b4316561ca18a8f4131e3e2d9.tar.gz searxng-d997265e5599333b4316561ca18a8f4131e3e2d9.zip |
add tests for unicode strings in wolframalpha
Diffstat (limited to 'searx/engines/wolframalpha_noapi.py')
-rw-r--r-- | searx/engines/wolframalpha_noapi.py | 4 |
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 |