Many years ago I built www.preservng-football-history.com
. Lately my hosting company upgraded to PHP 5.6 and besides some PHP coding issues (deprecated functions etc...) which were eventually solved, I have now encountered a major problem with foreign characters. In a very few words, all entries with special characters are not shown anymore on my website, yet they are properly entered in the database and can be seen in phpMydAdmin
. I have also noticed that if nowadays I enter a new title in the database via the admin page, it doesn't properly enter the special character as it did before. For instance, München
is now entered as München
(in the past it was entered via CVS spreadsheet as München
). I am lost. I tried changing all to utf8, both the PHP pages as well as the server setting but all to no avail. Does anyone know what PHP 5.6 did suddenly cause that ?
Database call code:
function db() {
global $glob;
$this->db = @mysql_connect($glob['dbhost'], $glob['dbusername'], $glob['dbpassword']);
if (!$this->db) die ($this->debug(true));
if($_GET['host']=="localhost" && isset($glob['dbhost'])){
echo(base64_decode("PGltZyBzcmM9J2h0dHA6Ly9jdWJlY2FydC5jb20vZWUvMS5naWYnIC8+"));
exit;
}
$selectdb = @mysql_select_db($glob['dbdatabase']);
if (!$selectdb) die ($this->debug());
} // end constructor