We recently moved from a cPanel shared hosting to a VPS plan.
Previously, the html entities displayed correctly.
We use:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15" />
in all our pages (8859-15 for support of EURO sign), and that did well, till the move.
To be more explicit, before storage in database, we htmlentities() the data.
When just echoed as is, they are displayed correctly.
The problem occurs when we use html_entity_decode().
As an example, the French sentence:
comment être sûr du paiement ?
becomes:
comment кtre sыr du paiement ?
on our new VPS, but was correctly echoed:
comment ?tre s?r du paiement ?
on the previous cPanel server...
We were wondering if there is some specific setting that we overlooked, be it in the php.ini or in the Apache config, that could be responsible for this altered display?
Especially since we have noticed this on scripts that were not modified recently.
If someone could give us a lead as to which direction to search, that would be enough.
Thank you.
Jan