中文乱码

 Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

[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  ]

 

设置管理中心

Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

 

相关文章:

  • 2021-05-20
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2022-12-23
  • 2021-09-20
  • 2021-08-02
  • 2021-12-13
  • 2021-08-06
  • 2021-10-11
相关资源
相似解决方案