中文乱码

[root@log include]# pwd /zhang/app/loganalyzer-3.6.5/src/include [root@log include]# vim functions_common.php
配置loganalyzer支持中文
function GetStringWithHTMLCodes($myStr) { global $content; // Replace all special characters with valid html representations return htmlentities($myStr, ENT_NOQUOTES, $content['HeaderDefaultEncoding']); "UTF-8"); }
重启web
[root@log include]# /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: httpd: apr_sockaddr_info_get() failed for log httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ OK ]
设置管理中心

本文详细介绍了如何在LogAnalyzer中配置以支持中文显示,通过修改functions_common.php文件中的GetStringWithHTMLCodes函数,替换所有特殊字符为有效的HTML表示,并设置正确的编码(UTF-8)。文章最后提到了重启web服务及设置管理中心的步骤。

398

被折叠的 条评论
为什么被折叠?



