linux下apache字符集问题

  当前在centOS 6下yum install httpd后,做Discuz X2搬家,发现在Ucenter界面,出现乱码,和打开的图片乱码差不多的样子。

解决办法:

  cd /etc/httpd/conf;

  vi httpd.conf;

  找到AddDefaultCharset UTF-8;修改为AddDefaultCharset GBK或则AddDefaultCharset Off.

  然后重启apache:servie httpd restart.

  ok!

原文地址:https://www.cnblogs.com/thinksasa/p/3017589.html