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):