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