[httpd] httpd directory list character encoding

时间:2021-01-06 06:59:45

在httpd下放置文件用来直接从浏览器访问的时候,中文文件名有可能产生乱码。

做以下设置,调整字符编码:

1:

  Add this to your .htaccess:

IndexOptions +Charset=UTF-

2:

  editing httpd.conf and adding:

AddDefaultCharset UTF-

Update @ 20170515    我哥们去试了。说不好使!