apache服务器 无法显示中文?????

由 hwansun 在 08-07-2004 14:54 发表:

apache服务器 无法显示中文?????

windows xp_pro系统,apache_2.0.49-win32,安装完后,打开

http;//localhost中文显示 apache安装成功!当我写了

一个网页test.html(其中有英文、中文简体、繁体),放到htdocs目录下,

再打开http;//localhost/test.html时,能显示英文,但中文则是乱码出现!

也尝试过以下几种方法:

1、AddDefaultCharset ISO-8859-1改成 AddDefaultCharset gb2312

2、再增加这一行 AddCharset gb2312

3、AddDefaultCharset ISO-8859-1改成 AddDefaultCharset off

结果都无法显示中文。但打开:

http://127.0.0.1/index.html.zh-cn.gb2312

http://127.0.0.1/index.html.zh-tw.big5

明明能显示中文。为什么我写那个就不行呢?为什么?


由 shihao 在 08-07-2004 22:48 发表:


AddDefaultCharset ISO-8859-1改成 AddDefaultCharset null


仅供参考,作者不对该脚本造成的任何结果负责


由 syd168 在 08-08-2004 09:45 发表:


AddDefaultCharset GB2312


技术论坛 论坛技术

发展技术 普及信息


由 danyja 在 08-08-2004 10:52 发表:

<p

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