Browse Source

[fix] wolframalpha unicode inputs

Adam Tauber 9 years ago
parent
commit
79705450df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/wolframalpha_noapi.py

+ 1 - 1
searx/engines/wolframalpha_noapi.py

@@ -90,6 +90,6 @@ def response(resp):
     if not result_chunks:
     if not result_chunks:
         return []
         return []
 
 
-    return [{'url': resp.request.headers['Referer'],
+    return [{'url': resp.request.headers['Referer'].decode('utf-8'),
              'title': 'Wolframalpha',
              'title': 'Wolframalpha',
              'content': ''.join(result_chunks)}]
              'content': ''.join(result_chunks)}]