fix encoding detection to use the encoding being tested

pull/96/head
Chris Curvey 7 years ago
parent e4efc87a20
commit 9a31587192

@ -43,7 +43,7 @@ def get_encoding(page):
encoding = fix_charset(declared_encoding)
# Now let's decode the page
page.decode()
page.decode(encoding)
# It worked!
return encoding
except UnicodeDecodeError:

Loading…
Cancel
Save