Package encodings :: Module euc_kr :: Class Codec
[hide private]
[frames] | no frames]

_ClassType Codec

codecs.Codec --+
               |
              Codec
Known Subclasses:

Instance Methods [hide private]
(string, length consumed)
encode(I, unicode, errors=...)
Return an encoded string version of `unicode'.
(unicodeobject, length consumed)
decode(I, string, errors=...)
Decodes `string' using I, an MultibyteCodec instance.
Method Details [hide private]

encode(I, unicode, errors=...)

 

Return an encoded string version of `unicode'. errors may be given to set a different error handling scheme. Default is 'strict' meaning that encoding errors raise a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and 'xmlcharrefreplace' as well as any other name registered with codecs.register_error that can handle UnicodeEncodeErrors.

Returns: (string, length consumed)
Overrides: codecs.Codec.encode

decode(I, string, errors=...)

 

Decodes `string' using I, an MultibyteCodec instance. errors may be given to set a different error handling scheme. Default is 'strict' meaning that encoding errors raise a UnicodeDecodeError. Other possible values are 'ignore' and 'replace' as well as any other name registerd with codecs.register_error that is able to handle UnicodeDecodeErrors.

Returns: (unicodeobject, length consumed)
Overrides: codecs.Codec.decode