Apache服务器URL访问中文编码设置
在/usr/local/apache/conf/httpd.conf文件末位添加以下信息:
1 #add chinese url code
2 LoadModule encoding_module /usr/local/apache/modules/mod_encoding.so
3 <IfModule mod_headers.c>
4 Header add MS-Author-Via "DAV"
5 </IfModule>
6
7 <IfModule mod_encoding.c>
8 EncodingEngine on
9 NormalizeUsername on
10 SetServerEncoding GBK
11 DefaultClientEncoding UTF-8 GBK GB2312
12 AddClientEncoding "(Microsoft .* DAV $)" UTF-8 GBK GB2312
13 AddClientEncoding "Microsoft .* DAV" UTF-8 GBK GB2312
14 AddClientEncoding "Microsoft-WebDAV*" UTF-8 GBK GB2312
15 </IfModule>