LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 753|回复: 2

httpd+php的charset问题!

[复制链接]
发表于 2005-4-24 11:53:21 | 显示全部楼层 |阅读模式
我用httpd+php做了一个网页,其中charset=utf-8,但是用浏览器打开时中文显示乱码,必须手动调节encoding到utf-8,不知为何?
中文部分是用php生成的。
请问该如何设置呢?
发表于 2005-4-24 12:24:38 | 显示全部楼层
apache配置文件中添加AddDefaultCharset   GB2312
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-24 20:13:40 | 显示全部楼层
thx, but I just set default to utf-8, and it works well.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表