(self, log, encoding = 'utf-8', replacement = u'\ufffd')
validates the correctness of given encoding. when data contains
        illegal symbols, replaces them with <replacement> and logs the
        incident
validates the correctness of given encoding. when data contains
        illegal symbols, replaces them with <replacement> and logs the
        incident
validates the correctness of given encoding . when data contains illegal symbols replaces them with <replacement > and logs the incident
def __init__(self, log, encoding = 'utf-8', replacement = u'\ufffd'):
        """validates the correctness of given encoding. when data contains
        illegal symbols, replaces them with <replacement> and logs the
        incident
        """

        if encoding.lower() not in ('utf8', 'utf-8'):
            raise Exception('only utf8 supported')

        self.encoding = encoding
        self.log = log
        self.columns = None
        self.error_count = 0
def __init__ ( self , log , encoding = 'utf-8' , replacement = u'\ufffd' ) : if encoding . lower ( ) not in ( 'utf8' , 'utf-8' ) : raise Exception ( 'only utf8 supported' ) self . encoding = encoding self . log = log self . columns = None self . error_count = 0