I rechecked the response headers, interesting thing is the server that works is 
just sending content-type: text/thml

but the one that does not work is sending  content-type: text/html and 
charset=UTF-8
even though it is sending the charset after I un-commented it in charset.conf.

So why does the old server work properly even though it does not explicitly set 
the charset, but the new server does not, even when it is set?

Is it the linux system itself that might be serving the file to apache weird?

One thing I did notice in the headers, is the old server has
transfer-encoding: chunked
but the new server does not have that, it has
Vary: accept-encoding



From: phunction <phunct...@hotmail.com>
Sent: Saturday, November 11, 2023 4:14 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Unicode Chars not working

Seeing how it's an exact copy from the other server and the other server is 
fine I would think that's more of a Apache configuration isn't it?

The content itself does not specify a character set.



Sent from my Galaxy


-------- Original message --------
From: Frank Gingras <thu...@apache.org<mailto:thu...@apache.org>>
Date: 2023-11-11 4:02 p.m. (GMT-08:00)
To: users@httpd.apache.org<mailto:users@httpd.apache.org>
Subject: Re: [users@httpd] Unicode Chars not working



On Sat, Nov 11, 2023 at 6:49 PM Chris me 
<phunct...@hotmail.com<mailto:phunct...@hotmail.com>> wrote:
Hi,
I am moving my site from one server to another, both are apache 2. The files 
where tarred and zipped on one linux server and copied to another linux server.

On the new server, any pages with a Unicode character is getting served with 
the black diamond and question mark.

I enabled AddDefaultCharset UTF-8 on the new server it does not make a 
difference.

What else do I need to change?

Are you sure your content is not producing html header with the wrong charset? 
I would inspect it.

Reply via email to