Re: Add charset in depend of meta tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 28 Feb 2007 16:02:46 +0100
Steffen Kaiser <Steffen.Kaiser@xxxxxxxxxxxxxxxxxxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux