Answer the question
In order to leave comments, you need to log in
How to solve htmlspecialchars and encoding problem?
Warning: htmlspecialchars(): charset `utf8' not supported, assuming utf-8 in ....domain/core/model/modx/modx.class.php on line 292
foreach ($targets as $target) {
$_SERVER[$target] = isset ($_SERVER[$target]) ? htmlspecialchars($_SERVER[$target], ENT_QUOTES) : null;
}
Warning: htmlspecialchars(): charset `utf8' not supported, assuming utf-8 in ....domain/core/config/config.inc.php on line 292
$http_host= array_key_exists('HTTP_HOST', $_SERVER) ? htmlspecialchars($_SERVER['HTTP_HOST'], ENT_QUOTES) : 'mydomain.ru';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question