I just copied a website to a new server (files + db) then I have the exact same php scripts and the exact same db. I have that table :
CREATE TABLE `cours` (
`idcours` int(11) NOT NULL,
`titrecours` varchar(256) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
And that record :
INSERT INTO `creforma_cours` (`idcours`, `titrecours`) VALUES
(-1040, 'Démonstration');
The HEX value for Démonstration
is 44C383C2A96D6F6E7374726174696F6E
(checked in original and new db)
I display that value with php print
without any decoding (the php file if in UTF8 no bom).
On the original website, it is displayed Démonstration
but on the new one it is displayed Démonstration
.
How can it be different ? Is there a configuration of php or mariadb-server that can prevent decoding ?