为 Apache 配置 UTF-8 中文编码

为 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 设置
posted @   季文康  阅读(686)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示