Charset issues on PHP 8.1+ #12758
Labels
AMP Output
Issues related to AMP output and validation
Group: WordPress
Changes related to WordPress or Gutenberg integration
Type: Bug
Something isn't working
Bug Description
It was reported to us a couple of times that there are character issues on PHP 8.1.
I noticed it has to do with
DOMDocument
not recognizing<meta charSet="utf-8"/>
(with uppercase S, as output by React) properly and thus assuming an incorrect encoding.Expected Behaviour
UTF-8 characters should be displayed as expected.
Steps to Reproduce
Screenshots
Incorrect:
Correct:
Additional Context
The text was updated successfully, but these errors were encountered: