diff --git a/src/search/forms.py b/src/search/forms.py index 4a4a3f9..21cf911 100644 --- a/src/search/forms.py +++ b/src/search/forms.py @@ -93,7 +93,9 @@ class ColabSearchForm(SearchForm): if self.cleaned_data['q']: - q = self.cleaned_data.get('q') + q = unicodedata.normalize( + 'NFKD', self.cleaned_data.get('q') + ).encode('ascii', 'ignore') dismax_opts = { 'q.alt': '*.*', -- libgit2 0.21.2