-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing non-UTF-8 pages #6
Comments
I'll leave the broader question of "can the library be fixed to handle this situation?" to Hans, but-
Yeah, to some definition of get around. body
|> Codepagex.to_string!(:iso_8859_1)
|> Html5ever.parse() |
Thanks, @mischov! |
Going to keep this open, I would still like to find a proper solution for this. As far as I can tell, html5ever does not support detecting encoding yet. See this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Parsing pages not written in UTF-8 currently produces errors:
In this case this XML feed has the encoding in the xml preeamble:
Can I get around this problem or can the library be fixed to handle this situation?
The text was updated successfully, but these errors were encountered: