We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4efc87 commit 9a31587Copy full SHA for 9a31587
1 file changed
readability/encoding.py
@@ -43,7 +43,7 @@ def get_encoding(page):
43
encoding = fix_charset(declared_encoding)
44
45
# Now let's decode the page
46
- page.decode()
+ page.decode(encoding)
47
# It worked!
48
return encoding
49
except UnicodeDecodeError:
0 commit comments