您的位置:首页 > 运维架构 > Apache

为 Apache 配置 UTF-8 中文编码

2018-02-13 17:15 344 查看

为 Apache 配置 UTF-8 中文编码

cat /etc/httpd/conf/httpd.conf | grep -n utf -C2
30-#
31-ServerRoot "/etc/httpd"
32:AddDefaultCharset utf-8
33-IndexOptions +Charset=UTF-8
34:AddCharset UTF-8 .utf8


AddCharset UTF-8 .utf8

添加 UTF-8 编码

AddDefaultCharset utf-8

设置默认编码

IndexOptions +Charset=UTF-8

Index UTF-8 设置
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: