大家好,我现在用apache2.4和php5.6.16, 
我是用XAMPP1.8.3-1安装的apache和php  
 我用apache配置了多个虚拟主机,其它几个都是utf-8编码的代码,只有一个是gbk的. 
 我在httpd.conf中没有动charset的设置,其实也没有,我查了一下,默认就是utf-8. 所有utf-8的网站都是好的, 就是这个bgk的有问题.   
 我查了一下,网上说可以分别设置各自虚拟主机的编码, 但我试了一下没有效果.   
 如: 
 我的httpd-vhosts.conf中的部分:   
 <VirtualHost *:8096> 
     DocumentRoot "F:\www\website" 
     ServerName sywww.ppp.com 
     AddDefaultCharset UTF-8 
     # ServerAlias www.dummy-host.example.com 
     ErrorLog "logs/sywww.ppp.com-error.log" 
     CustomLog "logs/sywww.ppp.com-access.log" common 
 </VirtualHost>   
 <VirtualHost *:8097> 
     DocumentRoot "F:\dede" 
     ServerName dede.ppp.com 
     AddDefaultCharset GBK 
     # ServerAlias www.dummy-host.example.com 
     ErrorLog "logs/dede.ppp.com-error.log" 
     CustomLog "logs/dede.ppp.com-access.log" common 
 </VirtualHost>   
 另外,我在httpd.conf中加 
 AddDefaultCharset off 或 utf-8 或 on 都一样的不起作用. 
比如我的主页,是index.php,但经过判断后是转到index.html, 而index.html点击运行, 显示的都是正常的治安,但是在网站中如:
http://localhost/index.html的话,就是乱码. 真烦人啊!!!  
 谁有好的主意?   
 谢谢       
--
修改:darlingpeng FROM 183.185.74.*
FROM 183.185.75.*