A
A
Adel Khalitov2017-07-20 18:28:21
PHP
Adel Khalitov, 2017-07-20 18:28:21

What is the cause of the modx error?

When installing any plugin, it gives an error.

PHP warning: htmlspecialchars(): charset `utf8' not supported, assuming utf-8

Comparison of MySQ connection encoding: utf8_general_ci
Comparison utf8_general_ci everywhere. All my life modx worked with utf now refuses.
After installing modx manually, I changed table comparisons from latin1_swedish_ci to utf8_general_ci, because my hoster (jino) defaults to the first option in the tables. Of course, I can misunderstand something or do something wrong, but the fact remains.
php: 5.6.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
4
4X_Pro, 2017-07-22
@SaveLolliPoP

You change the encoding in MySQL, and here we are talking about the encoding in PHP itself. If specifically, somewhere (most likely in php.ini in the internal_encoding option, or in .htaccess in the php_value directives, or in the settings of MODX itself, from which the same option is set via ini_set ) the encoding is written in the form utf8 instead of utf-8 , which PHP perceives as an invalid value.
Also, this is not an error, but a warning.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question