(self, unitext)
return unitext.encode(self._encoding, errors='replace')
Encode argument.
Encode argument.
Encode argument .
def _enc(self, unitext):
        """Encode argument."""
        return unitext.encode(self._encoding, errors='replace')
def _enc ( self , unitext ) : return unitext . encode ( self . _encoding , errors = 'replace' )