mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
add tests for unicode strings in wolframalpha
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user