Package tdi :: Package markup :: Package text :: Module decoder :: Class TextDecoder
[frames] | no frames]

Class TextDecoder

source code

object --+
         |
        TextDecoder

Decoder for text input
Instance Methods
 
__init__(self, encoding)
Initialization
source code
 
attribute(self, value, errors='strict') source code
 
decode(self, value, errors='strict') source code
 
normalize(self, name) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __implements__ = [<class 'tdi.interfaces.DecoderInterface'>]
Instance Variables
str encoding
Character encoding
Properties

Inherited from object: __class__

Method Details

__init__(self, encoding)
(Constructor)

source code 
Initialization
Parameters:
  • encoding (str) - Character encoding
Overrides: object.__init__

attribute(self, value, errors='strict')

source code 

See Also: DecoderInterface

decode(self, value, errors='strict')

source code 

See Also: DecoderInterface

normalize(self, name)

source code 

See Also: DecoderInterface


Class Variable Details

__implements__

Value:
[<class 'tdi.interfaces.DecoderInterface'>]

Instance Variable Details

encoding

Character encoding
Type:
str