Hi,
can someone help me with an error I'm seeing in my web server error log:
" (mod_fastcgi.c.2701) FastCGI-stderr: PHP Warning: htmlspecialchars(): Invalid multibyte sequence in argument in /var/www/inc/utils.inc.php on line 268 "
Now if we look at line 268 in utils.inc.php:
vim +268 /var/www/inc/utils.inc.php :
/*
* function for output data from database into html
*/
function htmlspecialchars_adv( $string ) {
return htmlspecialchars($string, ENT_COMPAT, 'UTF-8');//THIS IS LINE 268
/*
$patterns = array( "/(?!&#d{2,};)&/m", "/>/m", "/</m", "/"/m", "/'/m" );
$replaces = array( "&", ">", "<", """, "'" );
return preg_replace( $patterns, $replaces, $string );
*/
}
Any idea?
Kind regards
Mayki