From: Magnus Hagander Date: Tue, 15 Jan 2013 07:46:36 +0000 (+0100) Subject: Encode list search queries with UTF-8 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b418aca35511d605e8a2c0b8b034886a17dd94e3;p=pgweb.git Encode list search queries with UTF-8 Should fix exception when searching for non-ascii characters --- diff --git a/pgweb/search/views.py b/pgweb/search/views.py index e84fe1ef..94df6321 100644 --- a/pgweb/search/views.py +++ b/pgweb/search/views.py @@ -154,7 +154,7 @@ def search(request): # API. In the future, we probably want to do everything # through a http API and merge hits, but that's for later p = { - 'q': query, + 'q': query.encode('utf-8'), 's': listsort, } if listid: