客户端浏览的时候只能用UTF-8才能浏览中文,我改了下面的配置文件
/etc/apache2/conf.d/charset
# Read the documentation before enabling AddDefaultCharset.
# In general, it is only a good idea if you know that all your files
# have this encoding. It will override any encoding given in the files
# in meta http-equiv or xml encoding tags.
AddDefaultCharset GB2312
ServerName 192.168.1.10:80
/etc/apache2下面的apache2.conf也加了句AddDefaultCharset GB2312
还是不管用,
httpd.conf里面又是空的,我不知道怎么弄了,高手帮帮忙,我是刚学建立网站,努力努力,我在线等答案
PHP服务,乱码发狂ing...
-
- 帖子: 54
- 注册时间: 2008-04-10 2:44
-
- 帖子: 54
- 注册时间: 2008-04-10 2:44
Re: PHP服务,乱码发狂ing...
没人知道阿
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
Re: PHP服务,乱码发狂ing...
仅仅修改 /etc/apache2/conf.d/charset :
AddDefaultCharset UTF-8
AddDefaultCharset UTF-8