Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The solution of garbled Code in loganalyzer Chinese Log

Shulou Source: shulou.com Published: 2022-06-01 06:12:28 10月04日 Update

Edit the include/functions_common.php file under the source package;

Find lines that contain the return htmlentities field;

return htmlentities($myStr, ENT_NOQUOTES, $content['HeaderDefaultEncoding']);// "UTF-8");

Amend to read:

return htmlentities($myStr, ENT_NOQUOTES, $content['HeaderDefaultEncoding']), "UTF-8");

As follows:

Restart httpd or nginx; make sure the database character set is UTF8

Nginx php restart command:

kill-USR2 `cat /opt/soft/php/var/run/php-fpm.pid`

Then modify the Default character encoding parameter in Admin Center to UTF-8

l

Normal as follows:

Tags: UTF-8 parameters commands fields characters data database files source code garbled method log Chinese Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information Microsoft Xiaomi OPPO Reno