I run a personal website that always showed accented chars correctly. Now, suddenly, it doesn't any longer. The funny thing is, even its localhost version doesn't.
The application is unaltered over years in this regard and here it is what it does, in the given order:
mysql database set to collation utf8_general_ci
Application sends these two queries: "SET NAMES 'utf8' COLLATE 'utf8'" and "SET CHARACTER_SET 'utf8'"
Php headers send the following headers before anything is printed: header('Content-type: text/xml; charset=utf-8'."\r\n"); header('Content-transfer-encoding: utf-8'."\r\n");
Each web page shows a meta tag as follows: <meta http-equiv="content-type" content="text/html; charset=utf-8" />
Yet, now, suddenly, chars are shown all wrong. If I replace manually the chars, they are shwon as intended. But I cannot fathom if or what may have "corrupted" the database then. And certainly I cannot fix manually hundreds of posts.
Any idea why this strange thing suddenly happens and suggestions about how to fix it?
Instance of a wrong line: "Non ho mai avuto l' opportunità di incontrarti di persona. Non so se è perchè non ho cercato abbastanza l' occasione o perchè" etc...