PyDocs

Nav

Binary Data Services

encode

codecs

function
  • encode(obj, encoding='utf-8', errors='strict')
Encodes obj using the codec registered for encoding.

The default encoding is 'utf-8'.  errors may be given to set a
different error handling scheme.  Default is 'strict' meaning that
encoding errors raise a ValueError.  Other possible values are 'ignore',
'replace' and 'backslashreplace' as well as any other name registered
with codecs.register_error that can handle ValueErrors.
0 Examples
No examples for codecs/encode.
See Also
No see-alsos for codecs/encode
0 Notes
No notes for encode