content_type = webpage.info().get_content_type()
charset = webpage.info().get_content_charset()
if not charset or not content_type in ('text/html', 'text/xml',
content_type = webpage.info().get_content_type()
charset = webpage.info().get_content_charset()
if not charset or not content_type in ('text/html', 'text/xml',