removing charset information from http-headers

removing charset information from http-headers

am 23.10.2007 10:02:34 von Jan Mannoury

i have migrated a webserver to a new ubuntu server with apache 2.0.55
now i have a user who has thousands of html pages made with word with
all kind of quotation marks that show up like question marks.

after some rtfming and checking the http headers i found that apache
defines her pages as utf-8. the old server didn't send any charset
information in the http headers and the pages were shown just fine.
i found that i can make a .htaccess rule to change the default charset
but i don't know what charset her pages are in.

is there a way to not send any charset information at all? that used
to work fine on the old server.

regards,
janm

Re: removing charset information from http-headers

am 23.10.2007 23:26:47 von Steve Shaw

Jan Mannoury wrote:
> i have migrated a webserver to a new ubuntu server with apache 2.0.55
> now i have a user who has thousands of html pages made with word with
> all kind of quotation marks that show up like question marks.
>
> after some rtfming and checking the http headers i found that apache
> defines her pages as utf-8. the old server didn't send any charset
> information in the http headers and the pages were shown just fine.
> i found that i can make a .htaccess rule to change the default charset
> but i don't know what charset her pages are in.
>
> is there a way to not send any charset information at all? that used
> to work fine on the old server.
>
> regards,
> janm

Had the same issue - and thanks, as a result of your mail i've now
solved it !!

In httpd.conf i spoted the line

AddDefaultCharset UTF-8

Changing this to what I had in my previous config

AddDefaultCharset ISO-8859-1

restarted apache

and voila ... the problem went away

Regards
Steve

Re: removing charset information from http-headers

am 23.10.2007 23:39:26 von Jan Mannoury

On Tue, 23 Oct 2007 23:26:47 +0200, Steve Shaw
wrote:

>Jan Mannoury wrote:
>> i have migrated a webserver to a new ubuntu server with apache 2.0.55
>> now i have a user who has thousands of html pages made with word with
>> all kind of quotation marks that show up like question marks.
>>
>> after some rtfming and checking the http headers i found that apache
>> defines her pages as utf-8. the old server didn't send any charset
>> information in the http headers and the pages were shown just fine.
>> i found that i can make a .htaccess rule to change the default charset
>> but i don't know what charset her pages are in.
>>
>> is there a way to not send any charset information at all? that used
>> to work fine on the old server.
>>
>> regards,
>> janm
>
>Had the same issue - and thanks, as a result of your mail i've now
>solved it !!
>
>In httpd.conf i spoted the line
>
>AddDefaultCharset UTF-8
>
>Changing this to what I had in my previous config
>
>AddDefaultCharset ISO-8859-1
>
>restarted apache
>
>and voila ... the problem went away

damn. why didn't i think of that. it works for me too. thanks. have a
nice day

janm