Skip to content

Fix causing lxml error - #145

Merged
buriy merged 1 commit into
buriy:masterfrom
anekos:fix/causing-lxml-error
May 8, 2020
Merged

Fix causing lxml error#145
buriy merged 1 commit into
buriy:masterfrom
anekos:fix/causing-lxml-error

Conversation

@anekos

@anekos anekos commented May 8, 2020

Copy link
Copy Markdown

Some HTML files containing multi-byte characters (tests/samples/utf-8-kanji.sample.html) will cause an lxml error.

chardet.charsetprober: DEBUG: ISO-8859-5 confidence = 0.009386668517255605, below negative shortcut threshhold 0.05
...
snip
...
  File "src/lxml/etree.pyx", line 3435, in lxml.etree.tostring
  File "src/lxml/serializer.pxi", line 139, in lxml.etree._tostring
  File "src/lxml/serializer.pxi", line 199, in lxml.etree._raiseSerialisationError
lxml.etree.SerialisationError: IO_ENCODER

@anekos
anekos force-pushed the fix/causing-lxml-error branch from 8ab0007 to f76cee9 Compare May 8, 2020 09:20
Comment thread readability/readability.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants