A
A
Adel Khalitov2017-07-21 10:36:41
PHP
Adel Khalitov, 2017-07-21 10:36:41

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;
        }

And another line
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';

What's the trouble, modx does not allow you to install any plugin.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question