Prerequisites: Ensure that the default encoding for the browser you are testing is not set to ISO 8859-15.

charset on an a element

Click on the link. Test passes if you see a green square.

Click here

Assertion: [Exploratory test] A link to a page using the a element with a charset attribute will cause a page with no other encoding information to be rendered using the encoding specified in the charset attribute.

Notes:

The target page has no information associated with it that could indicate its character encoding. The link to the target page contains a charset attribute.

The test on that page contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ÜÀÚ. This matches the sequence of bytes above when they are interpreted as ISO 8859-15. If the class name matches the selector then the box will turn green.

Next test
HTML5

character-encoding-014
Result summary & related tests
Detailed results for this test