I have pages that I manually encoded in PHP over 10 years ago.
They are encoded in the old Hebrew encoding - windows-1255
Recently, they were all broken - the text is displayed as unrecognized UTF-8 characters - a diamond with a question mark inside.
When I manually change the encoding in the browser - any browser - the text is displayed correctly.
I thought that maybe the server on my host is forcing UFT-8 encoding. I have a .htaccess change to force windows-1255 encoding, but that didn't work.
I tried to check the page through W3C and it sees the page as UTF-8
I downloaded XAMPP and started the server locally and it still happens.
Has anything changed over the past year in the way Apache serves web pages regarding coding?
Before going to all my pages and changing their encoding, I would like to know if there is a global “switch” that I can flip so that my pages display correctly.
Thank.
source
share