Accesskey n skips to in-page navigation. Skip to the content start.

s_gotoW3cHome Internationalization
 

Test results: HTML escapes

These tests check whether user agents handle character escapes as expected for HTML and XHTML documents. In what follows, 'HTML' means HTML4.01 or XHTML 1.0 served as text/html. XML means XHTML 1.0 or XHTML 1.1 served as application/xhtml+xml.

Summary & conclusions

See the results below for user agents tested. This section summarizes the results of those tests.

All user agents produced characters as expected. Safari didn't display the supplementary character's glyph, but copy-paste did produce the right character.

For IE, Opera, and Chrome, it is important to specify a font for the text that includes the character in question if you wish to see the character rather than a box.

All user agents correctly displayed characters that were not in the encoding of the page.

All user agents displayed the euro sign in HTML if the escape used the Windows 1252 code point number rather than the correct Unicode code point number. This is contrary to the results expected as per the HTML 4.01 specification. None did so for pages served as XML.

Latest results

These are results for the latest versions of each user agent tested. A green background (yes) means that the assertion associated with the test held true; red (no) means that it did not; orange (partially) means that it was only partially true. To view the assertion, click on the text in the left column.

Results are given for four types of document format: H4 (HTML 4.01), XH (XHTML 1.0 served as text/html), X (XHTML 1.0 served as XML), X11 (XHTML 1.1, served as XML). If results for all formats are the same, a single cell is shown in the results table for a given test/browser combination. XML tests were not run for IE.

Basic declarations

UA IE IE Firefox Opera Safari Chrome
version 8 7 3.5.1 9.64 4.0.1 2.0.172.37
OS XP XP XP XP XP XP
date 20090717 20090717 20090717 20090717 20090717 20090717
hex ncr yes yes yes yes yes yes
decimal ncr yes yes yes yes yes yes
lower-case entity yes yes yes yes yes yes
upper-case entity yes yes yes yes yes yes
supplementary character yes yes yes yes partially 1 yes

Notes:

  1. Despite the Code2001 font being available on the system, Safari did not display the glyph for the supplementary character, however copying and pasting the blank square that was displayed did produce the right character.

Characters not in the page encoding

UA IE IE Firefox Opera Safari Chrome
version 8 7 3.5.1 9.64 4.0.1 2.0.172.37
OS XP XP XP XP XP XP
date 20090717 20090717 20090717 20090717 20090717 20090717
hex ncr outside range of charset yes yes yes yes yes yes
decimal ncr outside range of charset yes yes yes yes yes yes
character entity outside range of charset yes yes yes yes yes yes

C1 area code points

UA IE IE Firefox Opera Safari Chrome
version 8 7 3.5.1 9.64 4.0.1 2.0.172.37
OS XP XP XP XP XP XP
date 20090717 20090717 20090717 20090717 20090717 20090717
format H4, XH H4, XH H4 XH X X11 H4 XH X X11 H4 XH X X11 H4 XH X X11
hex ncr for C1 position of euro sign no no no no yes yes no no yes yes no no yes yes no no yes yes
decimal ncr for C1 position of euro sign no no no no yes yes no no yes yes no no yes yes no no yes yes

Tell us what you think (English).

Subscribe to an RSS feed.

New resources

Home page news

Further reading

Author: Richard Ishida, W3C.

Valid XHTML 1.0!
Valid CSS!
Encoded in UTF-8!

Content first published 2009-04-16. Last substantive update 2009-07-19 6:11 GMT. This version 2009-07-19 6:11 GMT

For the history of document changes, search for results-html-escapes in the i18n blog.