mirror of
https://github.com/searxng/searxng.git
synced 2025-02-18 21:15:16 +00:00
btdigg engine: fix text mojibake.
Seeing on the official instance, searching with non-ascii character usually renders mojibake non-sense: http://searx.me/?q=%E9%A3%9F%E5%A0%82&categories=files Screenshot with broken:  Screenshot of the fixed rendering: 
This commit is contained in:
parent
a905e4e7db
commit
01d2fb9f70
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ def request(query, params):
|
||||||
def response(resp):
|
def response(resp):
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
dom = html.fromstring(resp.text)
|
dom = html.fromstring(resp.content)
|
||||||
|
|
||||||
search_res = dom.xpath('//div[@id="search_res"]/table/tr')
|
search_res = dom.xpath('//div[@id="search_res"]/table/tr')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue