for c in charsets:
try:
parser = p(filename, c)
+ break
except UnicodeEncodeError:
pass
if parser:
if parser.meta_charset:
if log: log(" META charset : %s" % parser.charset)
else:
- if log: log(" HTTP charset : %s" % parser.charset)
+ if log: log(" guessed charset: %s" % parser.charset)
if log: log(" current charset: %s" % universal_charset)
if log: log(" title : %s" % title)
try: