summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Fretin <vincent.fretin@gmail.com>2013-03-11 09:22:11 (GMT)
committerVincent Fretin <vincent.fretin@gmail.com>2013-03-11 09:22:11 (GMT)
commit98ad2c7467846297095c310cddadb25330d02ed5 (patch)
tree43388847fa2adb2c5f1421d932e0af5cd666699c
parent8d12949be1d91a2b3f7fef5c95d7049ded41d149 (diff)
downloadcollective.contact.widget-98ad2c7467846297095c310cddadb25330d02ed5.zip
collective.contact.widget-98ad2c7467846297095c310cddadb25330d02ed5.tar.gz
collective.contact.widget-98ad2c7467846297095c310cddadb25330d02ed5.tar.bz2
Fixed UnicodeDecodeError in @@autocomplete-search
-rw-r--r--CHANGES.rst3
-rw-r--r--src/collective/contact/widget/widgets.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index c3ce36e..fc140ff 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -5,6 +5,9 @@ Changelog
1.0 (unreleased)
----------------
+- Fixed UnicodeDecodeError in @@autocomplete-search
+ [vincentfretin]
+
- Internationalized two messages.
[vincentfretin]
diff --git a/src/collective/contact/widget/widgets.py b/src/collective/contact/widget/widgets.py
index 4691d6f..78ffc36 100644
--- a/src/collective/contact/widget/widgets.py
+++ b/src/collective/contact/widget/widgets.py
@@ -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)])