Commit 86894e61 authored by Jean-Paul Smets's avatar Jean-Paul Smets

make sure we get a string

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16338 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7bad2557
......@@ -1098,7 +1098,7 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
charset_list = self.charset_parser.findall(str(html)) # XXX - Not efficient is datastream
# instance but hard to do better
if charset_list:
stripped_html = unicode(stripped_html, charset_list[0]).encode('utf-8')
stripped_html = unicode(str(stripped_html), charset_list[0]).encode('utf-8')
return stripped_html
security.declareProtected(Permissions.AccessContentsInformation, 'getContentInformation')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment