Exemplo n.º 1
0
    def utf8_portal(self, str, errors="strict"):
        """ Transforms an utf8 string to portal encoding.

        >>> ptool = self.portal.plone_utils
        >>> text = u'Eksempel \xe6\xf8\xe5'
        >>> utf8text = text.encode('utf-8')

        >>> ptool.utf8_portal(utf8text) == text.encode('utf-8')
        True
        """
        return utils.utf8_portal(self, str, errors)
Exemplo n.º 2
0
    def utf8_portal(self, str, errors='strict'):
        """ Transforms an utf8 string to portal encoding.

        >>> ptool = self.portal.plone_utils
        >>> text = u'Eksempel \xe6\xf8\xe5'
        >>> utf8text = text.encode('utf-8')

        >>> ptool.utf8_portal(utf8text) == text.encode('utf-8')
        True
        """
        return utils.utf8_portal(self, str, errors)
Exemplo n.º 3
0
 def utf8_portal(self, str, errors='strict'):
     """Transforms an utf8 string to portal encoding."""
     return utils.utf8_portal(self, str, errors)
Exemplo n.º 4
0
 def utf8_portal(self, str, errors='strict'):
     """Transforms an utf8 string to portal encoding."""
     return utils.utf8_portal(self, str, errors)