Article 6GHAF Apache issue with UTF-8 after moving to new server.

Apache issue with UTF-8 after moving to new server.

by
Phunction
from LinuxQuestions.org on (#6GHAF)
I have a strange problem. I am moving my site from an older lamp server to a new debian 12 lamp server. The files where tarred on the old, copied to the new and untarred.

Any UTF-8 characters like ' are showing as the black diamond with question mark.

I added AddDefaultCharset utf-8 to conf-enabled/charset.conf

I also tried adding <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> to the html file (originally not there). Examining the page in the browser with F12 does show charset utf-8 for content type.

I cannot figure out why the site displays fine on the old server but not the new server?

The only difference I can find is the locale on the old server is en_US.UTF-8 but on the new server is is C.UTF-8

Any hints would be great.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments