Re: AddDefaultCharset not working?

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

 



Vincent Bray wrote:
The presence of the Set-Cookie: header indicates that the response is
being generated by a program of some kind, rather than static html.
Most likely this program/script is setting the charset.


Ah, yes! For very historical reasons, we have PHP set up to handle .html files (don't ask, but the low volume makes it feasible anyway) so of course you're right.

Solution here was to add 2 lines to the vhost:
  # turn off that special PHP handling for HTML files for this vhost
  AddDefaultCharset UTF-8
  AddType text/html .html
As well as to disable the default charset in the php.ini for his actual PHP scripts:
  default_charset = ""



Thanks a lot, Vincent. Your second set of eyes really helped out.

--
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA

---------------------------------------------------------------------
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