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