php脚本不能正常显示中文

由 sshg 在 01-29-2004 15:48 发表:

php脚本不能正常显示中文

我用APACHE做WEB服务器。

httpd.ini中关于AddDefaultCharset GB2312 一行已成功加入,一般的HTML网页可以正常显示中文。

/etc/php.ini中的default_charset = "GB2312"也设好。

启动httpd后,

编辑

1   
2  
3echo("我的家");   
4  

出来是一堆乱码,但把浏器设为UTF-8后正常。

英文没问题。

请高手帮忙。


世界因你而精彩


由 baif 在 01-29-2004 16:28 发表:

试试

<meta http-equiv="Content-Type" content="te

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus