How to apply Apache directives to 'dynamic' HTML?

Gordon Messmer yinyang at eburg.com
Thu Oct 11 00:00:46 UTC 2007


Chris G wrote:
> No the script (or static HTML) can't do it itself, the apache
> AddDefaultCharset overrides it.
>   

I believe that you are incorrect.  If the CGI declares an encoding, it 
will be honored:

Change the content type declaration in the CGI to:

Content-type: text/html; charset=ISO-8859-1

...Thereafter, since the content-type is neither "text/plain" nor 
"text/html", apache will not change it to the default.




More information about the fedora-list mailing list