编辑源码包下include/functions_common.php文件;
找到含有return htmlentities字段的行;
return htmlentities($myStr, ENT_NOQUOTES, $content[‘HeaderDefaultEncoding‘]);// "UTF-8");
修改为:
return htmlentities($myStr, ENT_NOQUOTES, $content[‘HeaderDefaultEncoding‘]), "UTF-8");
如下所示:
重启httpd或者nginx;确保数据库字符集为UTF8
Nginx php重启命令:
kill-USR2 `cat /opt/soft/php/var/run/php-fpm.pid`
然后再修改Admin Center中的Default character encoding参数为UTF-8
显示正常如下:
本文出自 “都市布衣” 博客,请务必保留此出处http://sunday208.blog.51cto.com/377871/1393377
loganalyzer中文日志乱码的解决办法,布布扣,bubuko.com
原文:http://sunday208.blog.51cto.com/377871/1393377