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)
Exemple #2
0
    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)
Exemple #3
0
 def portal_utf8(self, str, errors='strict'):
     """Transforms an string in portal encoding to utf8."""
     return utils.portal_utf8(self, str, errors)
Exemple #4
0
 def portal_utf8(self, str, errors='strict'):
     """Transforms an string in portal encoding to utf8."""
     return utils.portal_utf8(self, str, errors)