diff --git a/ckan/controllers/api.py b/ckan/controllers/api.py index ddd18f688e2..fe566a90093 100644 --- a/ckan/controllers/api.py +++ b/ckan/controllers/api.py @@ -718,7 +718,8 @@ def dataset_autocomplete(self): return self._finish_ok(resultSet) def tag_autocomplete(self): - q = request.params.get('incomplete', '') + q = request.str_params.get('incomplete', '') + q = unicode(urllib.unquote(q), 'utf-8') limit = request.params.get('limit', 10) tag_names = [] if q: