Accesskey n skips to in-page navigation. Skip to the content start.
These tests check how characters in the C1 range of ISO code pages (ie. 0x80-0x9F) are displayed for pages with ISO 8859-1 and ISO 8859-15 encodings declared in the standard HTML 4.01 way using a meta statement, and whether their presence affects the encoding reported by the user agent.
See the results below for user agents tested. This section summarizes the results of those tests.
This is a summary of the basic test results.
All browsers tested displayed characters in the C1 range as per Windows cp1252 when the encoding of the document was set to ISO 8859-1. However, the two browsers that indicate the encoding of the document through the pull-down encoding menu on the user interface (IE and Firefox) did not report that the encoding had been changed to cp1252.
For test two, it is assumed that IE and Safari are trying to display cp1252 characters for which there are no font glyphs. For Firefox and Opera, the behaviour is clear, since the results are different from those of test 4.
C1 range characters are not displayed as cp1252 characters in any browser when the encoding is ISO 8859-15. (Additional tests seem to indicate that this holds for all ISO code pages other than 8859-1.)
Only Firefox uses the Unicode replacement character for characters in the C1 range when the encoding is ISO 8859-15. Since these characters map to Unicode characters that are unused by the HTML standard, one would have expected all browsers to use the replacement character.
All browsers displayed characters above the C1 range as expected for the declared encoding.
These are results for the latest versions of each browser tested. Green (yes) means the results are consistent with the encoding declared in the document, or with the default encoding; Red (no) means the results were not. Ochre is used where the results are unclear. Numbers in the table relate to notes immediately below.
| UA | IE | Firefox | Opera | Safari | IE | |
|---|---|---|---|---|---|---|
| version | 7 | 3.0.1 | 9.51 | 3.1.2 | 8 Beta | |
| OS | XP | XP | XP | XP | XP | |
| date | 20080718 | 20080718 | 20080718 | 20080718 | 20080718 | |
| 1 ISO 8859-1, C1 cp1252 | C1 results | cp1252 1 | cp1252 1 | cp1252 1 | cp1252 1 | cp1252 1 |
| >C1 results | yes | yes | yes | yes | yes | |
| Reported encoding | yes | yes | n/a | n/a | yes | |
| 2 ISO 8859-1, C1 cp1256 | C1 results | ▯ 4 | � 3 | _ 6 | ▯ 4 | |
| >C1 results | yes | yes | yes | yes | yes | |
| Reported encoding | yes | yes | n/a | n/a | yes | |
| 3 ISO 8859-15, C1 cp1252 | C1 results | ▯ 4 | � 3 | ▯ 4 | _ 6 | ▯ 4 |
| >C1 results | yes | yes | yes | yes | yes | |
| Reported encoding | yes | yes | n/a | n/a | yes | |
| 4 ISO 8859-15, C1 cp1256 | C1 results | ▯ 4 | � 3 | ▯ 4 | _ 6 | ▯ 4 |
| >C1 results | yes | yes | yes | yes | yes | |
| Reported encoding | yes | yes | n/a | n/a | yes |
Notes:
These tests were run with the default encoding set to ISO 8859-1. In the case of IE and Opera, this meant setting the encoding manually before running the tests. In the case of Firefox there is a dialog at Tools>Options>Content>Advanced that can be used. It was not clear how to set the default encoding for Safari.
Note that other tests using Shift-JIS as the default in Firefox indicate that there are different scenarios for determining the default encoding for a page, depending on which default is set, and perhaps the build location. For example, with Shift-JIS set as default on a UK standard build, tests 6 and 7 seem to default to a UTF-8 encoding.
| UA | IE | Firefox | Opera | Safari | IE | |
|---|---|---|---|---|---|---|
| version | 7 | 3.0.1 | 9.51 | 3.1.2 | 8 Beta | |
| OS | XP | XP | XP | XP | XP | |
| date | 20080718 | 20080718 | 20080718 | 20080718 | 20080718 | |
| 5 Default encoding discovery | 8859-1 3 | 8859-1 | 8859-1 3 | unknown | 8859-1 | |
| 6 Default encoding, C1 cp1252 | C1 results | no 1 | no 1 | no 1 | n/a | no 1 |
| >C1 results | yes | yes | yes | n/a | yes | |
| Reported encoding | yes | yes | 4 | n/a | yes | |
| 7 Default encoding, C1 cp1256 | C1 results | not clear 2 | no 1 | yes | n/a | not clear 2 |
| >C1 results | yes | yes | yes | n/a | yes | |
| Reported encoding | yes | yes | 4 | n/a | yes |
Notes:
Tell us what you think (English).
Content first published 2008-08-01. Last substantive update 2008-08-01 10:42 GMT. This version 2008-08-01 10:42 GMT
For the history of document changes, search for results-css-lang in the i18n blog.
Copyright © 2005-2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.