首页 > Web开发 > 详细

为 Apache 配置 UTF-8 中文编码

时间:2018-02-13 18:45:01      阅读:235      评论:0      收藏:0      [点我收藏+]

为 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 设置

为 Apache 配置 UTF-8 中文编码

原文:https://www.cnblogs.com/itxdm/p/Apache_configuration_UTF-8_Chinese_encoding.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!