1 parent 4dcd6f9 commit e121faeCopy full SHA for e121fae
1 file changed
readability/readability.py
@@ -159,6 +159,7 @@ def _html(self, force=False):
159
def _parse(self, input):
160
if isinstance(input, (_ElementTree, HtmlElement)):
161
doc = input
162
+ self.encoding = 'utf-8'
163
else:
164
doc, self.encoding = build_doc(input)
165
doc = html_cleaner.clean_html(doc)
0 commit comments