Logo Search packages:      
Sourcecode: webcheck version File versions

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 644 of file crawler.py.

00644                                     :
        """Set the encoding of the link doing some basic checks
        to see if the encoding is supported."""
        if self.encoding is 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: ' + encoding)
                self.add_pageproblem('unknown encoding: ' + encoding)


Generated by  Doxygen 1.6.0   Back to index