def portal_utf8(self, str, errors="strict"): """ Transforms an string in portal encoding to utf8. >>> ptool = self.portal.plone_utils >>> text = u'Eksempel \xe6\xf8\xe5' >>> sitetext = text.encode('utf-8') >>> ptool.portal_utf8(sitetext) == text.encode('utf-8') True """ return utils.portal_utf8(self, str, errors)
def portal_utf8(self, str, errors='strict'): """ Transforms an string in portal encoding to utf8. >>> ptool = self.portal.plone_utils >>> text = u'Eksempel \xe6\xf8\xe5' >>> sitetext = text.encode('utf-8') >>> ptool.portal_utf8(sitetext) == text.encode('utf-8') True """ return utils.portal_utf8(self, str, errors)
def portal_utf8(self, str, errors='strict'): """Transforms an string in portal encoding to utf8.""" return utils.portal_utf8(self, str, errors)