From f98b82b2d847eea1aac72facaf72e2a0cbda0921 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Mon, 25 Jul 2011 08:12:04 +0000 Subject: [PATCH] Make sure the catalog index for creator always stores encoded stings and not unicode since all strings in the catalog have to be utf-8 encoded strings. svn path=/plone.app.discussion/trunk/; revision=51435 --- plone/app/discussion/catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/catalog.py b/plone/app/discussion/catalog.py index 894d719..e87af0b 100644 --- a/plone/app/discussion/catalog.py +++ b/plone/app/discussion/catalog.py @@ -72,7 +72,7 @@ def title(object): @indexer(IComment) def creator(object): - return object.creator and safe_unicode(object.creator) + return object.creator and safe_unicode(object.creator).encode('utf-8') @indexer(IComment) def description(object):