Skip to main content
Transform your testing process with: Company-wide Licences, Test Observability & App Percy

Bad character encoding

Issues related to changes in encoding on characters in your snapshots during the visual testing process.

If you observe unusual character encoding in your snapshot, it probably results from a missing charset meta tag in the <head> of your web page. For more information, refer to the comprehensive documentation on character encoding provided by MDN.

If you are certain that your webpage contains a charset meta tag in the <head> of the document, ensure there is no invalid HTML being inserted into the <head>. We commonly see <div>s, <iframe>s, <img>s, and other types of content that cannot render in the <head> of an HTML document. Browsers automatically correct this erroneous HTML at render time, relocating the invalid content and everything after it outside of the <head>. The HTML spec specifies only metadata content can be children of a <head> tag.

Reference Topic

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy