I
I
IgorRastarov2017-04-24 12:13:58
MODX
IgorRastarov, 2017-04-24 12:13:58

Why does the encoding in modx crash after editing files in the admin panel?

Hi all. Problems with encoding in modx (Evolution 1.0.6) Questions
instead of Russian letters.
Here are the settings themselves:
1) In the modx admin panel itself:
Control system language: Russian (UTF-8)
Encoding: Unicode (utf8)
2) In the config

$database_connection_charset = 'utf8';
$database_connection_method = 'SET CHARACTER SET';

Content-type everywhere utf-8
3) In the database
Comparison: utf8_general_ci
All symptoms of this problem are fixed, the question is, where else could the problem be?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-05-17
@rudants

You need to additionally check "manager/includes/lang/russian.inc.php" in the line:

$contents = mb_convert_encoding($contents, 'windows-cp1251', 'UTF-8');
, and in the line:
$modx_manager_charset = 'cp1251';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question