Package tdi :: Package markup :: Package text :: Module filters :: Class EncodingDetectFilter
[frames] | no frames]

Class EncodingDetectFilter

source code

             object --+    
                      |    
filters.BaseEventFilter --+
                          |
                         EncodingDetectFilter

Extract template encoding and pass it properly to the builder
Instance Methods
 
handle_pi(self, data)
Extract encoding from PI instruction
source code

Inherited from filters.BaseEventFilter: __getattr__, __init__

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

Instance Variables

Inherited from filters.BaseEventFilter: builder

Properties

Inherited from object: __class__

Method Details

handle_pi(self, data)

source code 

Extract encoding from PI instruction

Here's a sample for the expected format:

[? encoding latin-1 ?]

The event is passed to the builder nevertheless.