diff options
author | Sean B. Palmer <sbp@aldebaran.local> | 2012-01-11 14:18:34 +0000 |
---|---|---|
committer | Sean B. Palmer <sbp@aldebaran.local> | 2012-01-11 14:18:34 +0000 |
commit | e3633957a9f115da07127fe97c629bb362b2af58 (patch) | |
tree | 2ee45462dff7f8a1e6eaf05aa00ef756558b6d1a /modules/search.py | |
parent | b2fe5b31e271f711cda6f2d730a51abba5244131 (diff) | |
download | bot-e3633957a9f115da07127fe97c629bb362b2af58.tar.gz bot-e3633957a9f115da07127fe97c629bb362b2af58.tar.bz2 bot-e3633957a9f115da07127fe97c629bb362b2af58.zip |
New .tr syntax for translations
Diffstat (limited to 'modules/search.py')
-rwxr-xr-x | modules/search.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/search.py b/modules/search.py index bfc50bd..13fadbb 100755 --- a/modules/search.py +++ b/modules/search.py @@ -20,6 +20,8 @@ class Grab(web.urllib.URLopener): def google_ajax(query): """Search using AjaxSearch, and return its JSON.""" + if isinstance(query, unicode): + query = query.encode('utf-8') uri = 'http://ajax.googleapis.com/ajax/services/search/web' args = '?v=1.0&safe=off&q=' + web.urllib.quote(query) handler = web.urllib._urlopener |