On Wed, 28 Feb 2007 16:02:46 +0100
Steffen Kaiser <[EMAIL PROTECTED]> 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
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to