You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this report. WeasyPrint just uses libxml2 (through lxml) to parse HTML. The handling of <meta> elements to detect character encoding is there. The good news is, this bug is fixed in version 2.8.0 of libxml2:
Add HTML parser support for HTML5 meta charset encoding declaration (Denis Pauk)
If you can upgrade libxml2 on your system, it should just work.
If you can not upgrade for some reason, another option is to use the html5lib parser. You should be able to do so with the git version of WeasyPrint and the workaround in #12 (comment)
Hi !
Unless I am mistaken, I think weasyprint des not support the short meta charset tag:
But works fine with the complete one:
Most of html5 website use the short one.
Because it is simpler and I think enought according to the specification.
Thanks for sharing weasyprint,
Thomas.
The text was updated successfully, but these errors were encountered: