Browse Source

[fix] character encoding fix

asciimoo 11 years ago
parent
commit
7ddf7d43ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/startpage.py

+ 1 - 1
searx/engines/startpage.py

@@ -18,7 +18,7 @@ def request(query, params):
 def response(resp):
     global base_url
     results = []
-    dom = html.fromstring(resp.text)
+    dom = html.fromstring(resp.content)
     for result in dom.xpath('//div[@class="result"]'):
         link = result.xpath('.//h3/a')[0]
         url = urljoin(base_url, link.attrib.get('href'))