KLOXO Why UTF-8 / GBK / GB2312 pages of Chinese garbled

Installed KLOXO,The default is apache web server,Sometimes you may wonder:KLOXO Why UTF-8 / GBK / GB2312 Chinese web pages garbled? This is due to the encoding output set would be forced apache UTF-8 or caused GBK,And your web pages are not in the coding,So there will be problems Chinese garbled。

How to solve the problem? simplest,It is switched to Lighttpd web service software。

apache kloxo panel switched to a method for lighttpd:Kloxo into the background = "server:linux => = handover procedure "Choose lighttpd =" update point。As shown below:

If you want to use apache,We need to find the apache httpd.conf,Modify the default encoding settings,as follows:

First landing VPS with SSH,Modify the httpd.conf file

cd /etc/httpd/conf/
vi httpd.conf

Seek:AddDefaultCharset
The:AddDefaultCharset UTF8
Changed:AddDefaultCharset OFF

In this case,When it will open the page in accordance with encoding settings page to open the page。

Enter the following command to restart Apache
service httpd restart

Leave a Comment