Re: For review: Character encodings in HTML and CSS

Leif Halvard Silli scripsit:

> > Elsewhere, I've seen it recommended elsewhere that I encode my 
> > documents as ansi, and then just use the Latin-1 char set (ISO 
> > 8859-1) with no escapes (assuming I can do this),
> 
> ISO-8859-1 apparently is synonymous with ANSI/Windows-1252 on the Web - 
> but I don't know the details.

Windows-1252 is a superset of ISO 8859-1, containing 16 characters that
aren't assigned in 8859-1.

> If your document actually only contains ASCII characters - or if all 
> non-ASCII characters are escaped, then it should work. But I don't see 
> why it should work if it has unescaped non-ASCII characters, unless 
> there were a mislabeling going on ...

It wouldn't, except that some browsers ignore the encoding declarations if
sniffing the document tells them otherwise.

-- 
Schlingt dreifach einen Kreis vom dies!    John Cowan <cowan@ccil.org>
Schliesst euer Aug vor heiliger Schau,     http://www.ccil.org/~cowan
Denn er genoss vom Honig-Tau,
Und trank die Milch vom Paradies.            --Coleridge (tr. Politzer)

Received on Friday, 12 February 2010 07:54:52 UTC