编辑源码包下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
显示正常如下:
转载于:https://blog.51cto.com/sunday208/1393377