Commit d70cc0d4c0e046decf13289b3fc69f7c209cb191

Authored by Sergio Oliveira
1 parent c8b9b244

Rollback from last commit

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
src/search/forms.py
@@ -93,7 +93,9 @@ class ColabSearchForm(SearchForm): @@ -93,7 +93,9 @@ class ColabSearchForm(SearchForm):
93 93
94 94
95 if self.cleaned_data['q']: 95 if self.cleaned_data['q']:
96 - q = self.cleaned_data.get('q') 96 + q = unicodedata.normalize(
  97 + 'NFKD', self.cleaned_data.get('q')
  98 + ).encode('ascii', 'ignore')
97 99
98 dismax_opts = { 100 dismax_opts = {
99 'q.alt': '*.*', 101 'q.alt': '*.*',