From afbf0f0dfead7d119eb10dcc9ea1f25016d4ff31 Mon Sep 17 00:00:00 2001 From: Jari Voutilainen Date: Wed, 23 Mar 2016 10:38:04 +0200 Subject: [PATCH] fix unicode encode error in facet filters with scandinavian alphabets --- ckanext/harvest/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/harvest/plugin.py b/ckanext/harvest/plugin.py index 2a941c3..4db7cfb 100644 --- a/ckanext/harvest/plugin.py +++ b/ckanext/harvest/plugin.py @@ -92,7 +92,7 @@ class Harvest(p.SingletonPlugin, DefaultDatasetForm, DefaultTranslation): fq = search_params.get('fq', '') if 'dataset_type:harvest' not in fq: - fq = "{0} -dataset_type:harvest".format(search_params.get('fq', '')) + fq = u"{0} -dataset_type:harvest".format(search_params.get('fq', '')) search_params.update({'fq': fq}) return search_params