apache2.4 中文乱码问题

来源:互联网 发布:阿里云服务器怎么设置 编辑:程序博客网 时间:2024/06/06 00:28

apache2.4 中文乱码问题

PHP.ini里面的default_charset = "UTF-8"


<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>


Apache 中文乱码解决方案

服务器端:
======
修改httpd.conf (在Redhat中放置的位置为/etc/httpd/conf/)
查找:
AddDefaultCharset ISO-8859-1
改成:
#AddDefaultCharset ISO-8859-1
AddDefaultCharset off

原创粉丝点击