Apache Server configuration support - How to set HTTP_ACCEPT_CHARSET variable

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > How to set HTTP_ACCEPT_CHARSET variable





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to set HTTP_ACCEPT_CHARSET variable
Fox35

2006-02-15, 7:59 am

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 :-)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com