- From: Mark Stosberg <mark@summersault.com>
- Date: Wed, 24 Sep 2003 11:46:46 -0500
- To: public-evangelist@w3.org
On Wed, Sep 24, 2003 at 05:54:05PM +0200, Dominique Haza?l-Massieux wrote: > Le mer 24/09/2003 ? 17:51, Mark Stosberg a ?crit : > > I was just reading here about character encodings: > > > > Down in section C.9, it states: "the best approach is to ensure that the > > web server provides the correct headers. " > > > > I would like to do this, but I'm unsure of how to configure my Apache > > web server to send the correct headers by default. Could someone post an > > example of what the correct headers would be and/or an example of a > > "correct" Apache configuration for this? > > Provided that all your xhtml files have a uniform extension (say .html) > and a uniform encoding (say iso-8859-1), and provided that you serve > them as text/html (but this applies trivially to application/xhtml+xml), > you can add (or amend an existing entry) the following directive: > AddType text/html;charset=iso-8859-1 html Thanks. Just to clarify my specific case: We are an American web hosting company. Nearly all of our pages are in American english. Some pages will include declarations to declare their own content type, others won't. I think in our case it's reasonable to assume that for pages that don't declare a document type, defaulting to a standard American english kind of character set is reasonable. Mark -- . . . . . . . . . . . . . . . . . . . . . . . . . . . Mark Stosberg Principal Developer mark@summersault.com Summersault, LLC 765-939-9301 ext 202 database driven websites . . . . . http://www.summersault.com/ . . . . . . . .
Received on Wednesday, 24 September 2003 12:49:03 UTC