Besides the above, the functions of PHP: htmlentities and htmlentities, have changed in PHP 5.4 of ISO8859-1 charset to UTF8 in their default values.
If anyone has problems displaying a matter of accents include the following code in the header of / manager / inculdes / protect.inc.php.
<?php
/**
* Protect against some common security flaws
*/
//functions to bypass charset in htmlspecialchars and htmlentities
function htmlentitiesSuffix($string, $flags = "ENT_COMPAT | ENT_HTML401", $encoding = 'ISO-8859-15', $double_encode = true){
return htmlentities ( $string ,(int)$flags, $encoding, $double_encode);
}
function htmlspecialcharsSuffix($string, $flags = "ENT_COMPAT | ENT_HTML401", $encoding = 'ISO-8859-15', $double_encode = true){
return htmlspecialchars ( $string ,(int)$flags, $encoding, $double_encode);
}
Having before renaming all occurrences of these two functions to new htmlentitiesSuffix and htmlentitiesSuffix