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