Skip to content

Fix encoding error when HTML5 meta charset does not appear at beginning of head#2970

Merged
westonruter merged 1 commit intodevelopfrom
fix/document-encoding
Aug 5, 2019
Merged

Fix encoding error when HTML5 meta charset does not appear at beginning of head#2970
westonruter merged 1 commit intodevelopfrom
fix/document-encoding

Conversation

@westonruter
Copy link
Copy Markdown
Member

Fixes https://wordpress.org/support/topic/big-problem-in-my-persian-site/

It turns out that libxml>=2.6 fails to read the <meta charset=…> if it is not the first child of the head. So this PR adds the old-school HTML4 <meta http-equiv=Content-Type> tag which was required always prior to libxml 2.6 so that it will be added unconditionally.

Build for testing: amp.zip - v1.2.1-beta1-20190805T220646Z-680afba9

@westonruter westonruter added this to the v1.2.1 milestone Aug 5, 2019
@westonruter westonruter requested a review from amedina August 5, 2019 22:10
@googlebot googlebot added the cla: yes Signed the Google CLA label Aug 5, 2019
Copy link
Copy Markdown
Member

@amedina amedina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Signed the Google CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants