Fixed UnicodeDecodeError in @@autocomplete-search

This commit is contained in:
Vincent Fretin 2013-03-11 10:22:11 +01:00
parent 8d12949be1
commit 98ad2c7467
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,9 @@ Changelog
1.0 (unreleased)
----------------
- Fixed UnicodeDecodeError in @@autocomplete-search
[vincentfretin]
- Internationalized two messages.
[vincentfretin]

View File

@ -268,5 +268,5 @@ class AutocompleteSearch(BaseAutocompleteSearch):
else:
terms = set()
return '\n'.join(["|".join((t.token, t.title or t.token, t.portal_type, t.url, t.extra))
return u'\n'.join([u"|".join((t.token, t.title or t.token, t.portal_type, t.url, t.extra))
for t in sorted(terms, key=lambda t: t.title)])