From abed4c8dd404f9aabfa77aba3cd325152efe496d Mon Sep 17 00:00:00 2001 From: Nicolas Demonte Date: Tue, 2 Apr 2019 15:04:11 +0200 Subject: [PATCH] Amend previous fix #31911 --- src/pfwbged/basecontent/indexers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pfwbged/basecontent/indexers.py b/src/pfwbged/basecontent/indexers.py index 1f74cdb..d2e4d46 100644 --- a/src/pfwbged/basecontent/indexers.py +++ b/src/pfwbged/basecontent/indexers.py @@ -39,7 +39,7 @@ def document_dynamic_searchable_text_indexer(obj): try: datastream = transforms.convertTo( 'text/plain', child.file.data, mimetype=child.file.contentType, - filename=unicode(child.file.filename, 'utf-8')) + filename=child.file.filename.encode('utf-8')) indexed_elements.append(unicode(datastream.getData(), 'utf-8', 'ignore')) except (ConflictError, KeyboardInterrupt):