Logo Search packages:      
Sourcecode: webcheck version File versions  Download package

def crawler::Link::set_encoding (   self,
  encoding 
)

Set the encoding of the link doing some basic checks
to see if the encoding is supported.

Definition at line 589 of file crawler.py.

00589                                     :
        """Set the encoding of the link doing some basic checks
        to see if the encoding is supported."""
        if self.encoding is None and encoding is not None:
            try:
                debugio.debug('crawler.Link.set_encoding("'+str(encoding)+'")')
                unicode('just some random text', encoding, 'replace')
                self.encoding = encoding
            except Exception:
                self.add_pageproblem('unknown encoding: ' + str(encoding))
                self.add_pageproblem('unknown encoding: ' + str(encoding))


Generated by  Doxygen 1.6.0   Back to index