httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: [users@httpd] Add charset in depend of meta tag
Date Mon, 05 Mar 2007 10:17:13 GMT
On Wed, 28 Feb 2007 16:02:46 +0100
Steffen Kaiser <> wrote:

> Hello,
> is it possible in Apache 2.0.54 to add the charset to the header
> only, when there is none in the meta tags of the served page? Or to
> send the charset of the page?

Apache doesn't look inside the page for <meta>.

If that's a problem, you can use a parsing module like mod_proxy_html
or mod_publisher.  They'll look for a <meta ...> if there's no
charset declared in the HTTP headers, and ensure the correct header
is sent.

> I stumbled across something called "Mod_charset", but in the
> conjunction of "Russian Apache" and PHP only.

mod_charset_lite just converts between charsets, and needs to be told
the "to" and "from" charsets in httpd.conf.  AFAIK mod_charset is
similar, but check its page: maybe it can sniff nowadays.

Nick Kew

Application Development with Apache - the Apache Modules Book

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message