Lines Matching defs:encoding
13 lookup(encoding) -> CodecInfo object
17 <encoding>_encode(Unicode_object[,errors='strict']) ->
20 <encoding>_decode(char_buffer_obj[,errors='strict']) ->
23 These <encoding>s are available: utf_8, unicode_escape,
56 Search functions are expected to take one argument, the encoding name in
94 encoding: str
101 _codecs_lookup_impl(PyObject *module, const char *encoding)
104 return _PyCodec_Lookup(encoding);
110 encoding: str(c_default="NULL") = "utf-8"
113 Encodes obj using the codec registered for encoding.
115 The default encoding is 'utf-8'. errors may be given to set a
116 different error handling scheme. Default is 'strict' meaning that encoding
123 _codecs_encode_impl(PyObject *module, PyObject *obj, const char *encoding,
127 if (encoding == NULL)
128 encoding = PyUnicode_GetDefaultEncoding();
131 return PyCodec_Encode(obj, encoding, errors);
137 encoding: str(c_default="NULL") = "utf-8"
140 Decodes obj using the codec registered for encoding.
142 Default encoding is 'utf-8'. errors may be given to set a
143 different error handling scheme. Default is 'strict' meaning that encoding
150 _codecs_decode_impl(PyObject *module, PyObject *obj, const char *encoding,
154 if (encoding == NULL)
155 encoding = PyUnicode_GetDefaultEncoding();
158 return PyCodec_Decode(obj, encoding, errors);
967 instance containing information about the location of the encoding/decoding