From 7ace6857b7a343642426e5ad5669235b7edc9fdb Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 30 Dec 2010 13:01:39 +0000
Subject: [PATCH] portal_transform result should be str, not unicode.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41876 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/PortalTransforms/transforms/xml_to_text.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/PortalTransforms/transforms/xml_to_text.py b/product/PortalTransforms/transforms/xml_to_text.py
index 18358ca75e..deb1f4e914 100644
--- a/product/PortalTransforms/transforms/xml_to_text.py
+++ b/product/PortalTransforms/transforms/xml_to_text.py
@@ -14,7 +14,7 @@ class xml_to_text:
 
     def convert(self, data, cache, **kw):
         text_list = etree.fromstring(data).itertext()
-        out = ' '.join([text for text in text_list if text])
+        out = ' '.join([text for text in text_list if text]).encode('utf-8')
         cache.setData(out)
         return cache
 
-- 
2.30.9