Merge pull request #96 from ccurvey/master

fix encoding detection to use the encoding being tested
pull/94/merge
Yuri Baburov 7 years ago committed by GitHub
commit 78cac34bb3

@ -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