为何我的http给别人访问时是乱码的呢??

由 Snoopy 在 04-25-2003 16:52 发表:

为何我的http给别人访问时是乱码的呢??

我用的是redhat9.0,默认开启http,没改里面什么,在/var/www/html里放个网页

在本地浏览没事,,,放到这个目录里给人访问时就乱码,请问怎么解决啊~???


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 网梦 在 04-25-2003 17:25 发表:


我想应该是对方游览器的事,再找别人试试。


每天持续前进一步!


由 baif 在 04-26-2003 08:50 发表:

回复: 为何我的http给别人访问时是乱码的呢??

> quote: > > * * * > > 最初由 pinksnoopy 发表
>
> **我用的是redhat9.0,默认开启http,没改里面什么,在/var/www/html里放个网页
>
>
>
> 在本地浏览没事,,,放到这个目录里给人访问时就乱码,请问怎么解决啊~??? ** > > * * *

检查一下你的网页是不是以中文编码保存的先


由 Freebird 在 04-26-2003 09:04 发表:


我觉得应该是编码的问题


爱生活,爱拉登。

小站才刚完成,呵呵

http://finalbsd.go.3322.org/


由 gdmmdx 在 04-26-2003 09:45 发表:


你应该用

1<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>

才能显示正常!

这种现象见多次数了呀


由 Xiaojun 在 04-26-2003 18:00 发表:


我用apache2也出现了类似的问题:

测试页面以在代码中添加"

1<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>

"这句,并能在本地浏览浏览能正常显示中文.

而通过服务器访问:

mozilla访问出现乱码.打开页面之后编码选 简体中文(GB2312) 之后就能正常显示中文. 但查看页面源代码仍然是乱码.

而lynx则可以直接自动专成gb2312编码,并正常显示.

我曾在httpd.conf中添加过:

AddLanguage zh-cn .cn

也没有效果

我估计apache2对中文支持有问题(也可能是我配置有问题, 如果是配置问题,请高手请教).

但肯定不是浏览器的问题: mozilla显示其他服务器的中文网页都正常.


由 Snoopy 在 04-27-2003 10:01 发表:


但我默认开启http就那样的啊,,,又没修改什么,是不是有

其它地方有问题啊??


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 Haides 在 04-27-2003 11:47 发表:


> quote: > > * * * > > 最初由 Xiaojun 发表
>
> **我曾在httpd.conf中添加过:
>
> AddLanguage zh-cn .cn
>
> 也没有效果
>
>
>
> ** > > * * *

Apache2对中文支持应该是没有问题的

配置文件中需要加上DefaultLanguage的设置,举例如下

DefaultLanguage zh-cn

AddLanguage zh-cn .cn

AddLanguage da .dk

AddLanguage nl .nl

…………


由 Xiaojun 在 04-27-2003 13:47 发表:


> quote: > > * * * > > 最初由 Haides 发表
>
> **Apache2对中文支持应该是没有问题的
>
> 配置文件中需要加上DefaultLanguage的设置,举例如下
>
>
>
> DefaultLanguage zh-cn
>
> AddLanguage zh-cn .cn
>
> AddLanguage da .dk
>
> AddLanguage nl .nl
>
> ………… ** > > * * *

把默认的语言或默认的编码设置成中文都不是关键

比如:

http://www.gnu.org/

http://www.debian.org

上面这些站点都有各种语言的本地化页面. 都可以正常显示中文, 但是这些国外的站点应该是不可能设置成

AddDefaultCharset GB2312

以及

DefaultLanguage zh-cn

的吧.


由 Snoopy 在 04-27-2003 17:58 发表:


ok,,,i try!

谁有更好的建议呢???


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 Snoopy 在 04-27-2003 17:59 发表:


ok,,,i try!

谁有更好的建议呢??? 你们默认开的会不会这样呢?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 lanmaster 在 04-27-2003 18:09 发表:


我也想知道如何解决这个问题。除了改默认语言和编码。还有没有其它好的办法。


成长中的菜鸟!

E-Mail:qcy_[email protected]

QQ :7118899


由 Haides 在 04-28-2003 21:58 发表:


<

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