Total Pageviews

Wednesday 31 October 2012

Kloxo/Lxadmin乱码解决办法

简单解决方法:

新建一个记事本文件,输入以下代码:

AddDefaultCharset gb2312
AddCharset gb2312 .html
AddType 'text/html; charset=gb2312' html

保存后上传到域名的主目录,然后把文件重命名为.htaccess

如果原目录下已有.htaccess,请在原文件中添加以上代码。

彻底解决方法:
# cd /etc/httpd/conf/
# nano httpd.conf


查找:AddDefaultCharset
把:AddDefaultCharset UTF-8
改为:AddDefaultCharset OFF


完成后执行
service httpd restart