| |
- ascii_decode(...)
- ascii_encode(...)
- charbuffer_encode(...)
- charmap_build(...)
- charmap_decode(...)
- charmap_encode(...)
- decode(...)
- decode(obj, [encoding[,errors]]) -> object
Decodes obj using the codec registered for encoding. encoding defaults
to the default encoding. 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' and 'replace'
as well as any other name registered with codecs.register_error that is
able to handle ValueErrors.
- encode(...)
- encode(obj, [encoding[,errors]]) -> object
Encodes obj using the codec registered for encoding. encoding defaults
to the default encoding. 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
'xmlcharrefreplace' as well as any other name registered with
codecs.register_error that can handle ValueErrors.
- escape_decode(...)
- escape_encode(...)
- latin_1_decode(...)
- latin_1_encode(...)
- lookup(...)
- lookup(encoding) -> CodecInfo
Looks up a codec tuple in the Python codec registry and returns
a CodecInfo object.
- lookup_error(...)
- lookup_error(errors) -> handler
Return the error handler for the specified error handling name
or raise a LookupError, if no handler exists under this name.
- raw_unicode_escape_decode(...)
- raw_unicode_escape_encode(...)
- readbuffer_encode(...)
- register(...)
- register(search_function)
Register a codec search function. Search functions are expected to take
one argument, the encoding name in all lower case letters, and return
a tuple of functions (encoder, decoder, stream_reader, stream_writer)
(or a CodecInfo object).
- register_error(...)
- register_error(errors, handler)
Register the specified error handler under the name
errors. handler must be a callable object, that
will be called with an exception instance containing
information about the location of the encoding/decoding
error and must return a (replacement, new position) tuple.
- unicode_escape_decode(...)
- unicode_escape_encode(...)
- unicode_internal_decode(...)
- unicode_internal_encode(...)
- utf_16_be_decode(...)
- utf_16_be_encode(...)
- utf_16_decode(...)
- utf_16_encode(...)
- utf_16_ex_decode(...)
- utf_16_le_decode(...)
- utf_16_le_encode(...)
- utf_32_be_decode(...)
- utf_32_be_encode(...)
- utf_32_decode(...)
- utf_32_encode(...)
- utf_32_ex_decode(...)
- utf_32_le_decode(...)
- utf_32_le_encode(...)
- utf_7_decode(...)
- utf_7_encode(...)
- utf_8_decode(...)
- utf_8_encode(...)
|