Please see below, I do not top post.
On 2023-11-12 17:09, Chris me wrote:
Yes, the headers are the same on both, there is no header directive to
set character set, as I have stated.
IE, there is nothing like <meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" /> in the header.
There has to be something different in the 2 apache servers, the one
that works is an older 2.4.4 and the new one is 2.4.57 that is not
working right.
Still can’t figure out what is causing the difference.
*From:* Frank Gingras <thu...@apache.org>
*Sent:* Saturday, November 11, 2023 5:44 PM
*To:* users@httpd.apache.org
*Subject:* Re: [users@httpd] Unicode Chars not working
On Sat, Nov 11, 2023 at 8:31 PM phunction <phunct...@hotmail.com
<mailto:phunct...@hotmail.com>> wrote:
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.
Try to inspect the response headers with your browser (F12) next.
Latest W3 strongly suggests (even will give an error if missing) having
a <meta http-equiv="Content-Type" content="text/html; charset=utf-8">.
Have you tried this on your original website? This should confirm that
you have no charset errors.
You could also try # rsync -avz from the original to a clean directory
on the new server, rather than tar zip. If the original was utf-8 and
not some variant, it should copy faithfully.
I can confirm that utf-8 from 2.4.4 to 2.4.52 (note, not 57) works
perfectly.
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org