| Author |
How to set HTTP_ACCEPT_CHARSET variable
|
|
|
| Hello to you all
I work with Apache 2.2 in a RedHat AS 4 Update 1.
The apache's variable HTTP_ACCEPT_CHARSET is UTF8,*.
I want to set this variable to ISO-8859-15 (I need that because of the
euro character), but I don't know how to set this variable.
I've look for the apache's sources, but I don't found anything.
Any ideas ?
Thank you for helping me
| |
| Robert Ionescu 2006-02-17, 10:29 pm |
| Fox35 wrote:
> The apache's variable HTTP_ACCEPT_CHARSET is UTF8,*.
The browser specifies the preferred charset in some priority order in
this header, but you are in a wrong place here in order to get a correct
encoding when the browser displays the page. ACCEPT headers are
HTTP-request but to display some chars on a page correctly, the correct
encoding must be set in the HTTP response. The content-type header
should send the charset encoding like
Content-Type: text/html;charset=ISO-8859-1
> I've look for the apache's sources, but I don't found anything.
I think you're looking for mod_headers:
http://httpd.apache.org/docs/2.2/mod/mod_headers.html
--
Robert
| |
| HansH 2006-02-17, 10:29 pm |
| "Robert Ionescu" <robsiegen@googlemail.com> schreef in bericht
news:dsvess$fbc$1@online.de...
> The browser specifies the preferred charset in some priority order in
> this header, but you are in a wrong place here in order to get a correct
> encoding when the browser displays the page. ACCEPT headers are
> HTTP-request but to display some chars on a page correctly, the correct
> encoding must be set in the HTTP response. The content-type header
> should send the charset encoding like
>
> Content-Type: text/html;charset=ISO-8859-1
>
>
> I think you're looking for mod_headers:
> http://httpd.apache.org/docs/2.2/mod/mod_headers.html
>
http://httpd.apache.org/docs/2.0/mo...ddefaultcharset
might make thing simple too.
HansH
| |
| Fox35 2006-02-17, 10:30 pm |
| HansH wrote:
> "Robert Ionescu" <robsiegen@googlemail.com> schreef in bericht
> news:dsvess$fbc$1@online.de...
>
>
> http://httpd.apache.org/docs/2.0/mo...ddefaultcharset
> might make thing simple too.
>
> HansH
>
>
Thank you to you all for these answers :-)
|
|
|
|