(self, ucs, errors='ignore')
return b''.join(self._from_unicode(uc, errors=errors) for uc in self._split_unicode(ucs))
Convert unicode string to codepage string.
Convert unicode string to codepage string.
Convert unicode string to codepage string .
def unicode_to_bytes(self, ucs, errors='ignore'):
        """Convert unicode string to codepage string."""
        return b''.join(self._from_unicode(uc, errors=errors) for uc in self._split_unicode(ucs))
def unicode_to_bytes ( self , ucs , errors = 'ignore' ) : return b'' . join ( self . _from_unicode ( uc , errors = errors ) for uc in self . _split_unicode ( ucs ) )