Charset Mismatch [英] Charset Mismatch

查看:117
本文介绍了Charset Mismatch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个验证的页面,但会产生关于charset

不匹配的警告。警告声称我在http标头中指定了一个字符集。我

没有在http标题中指定一个字符集。是什么赋予了?这是w3c

验证器链接:
http://validator.w3.org/check?uri=ht...y%2Fnukes.html

I hae a page which validates, but produces a warning about a charset
mismatch. The warning claims I specify a charset in the http header. I
don''t specify a charset in the http header. What gives? Here''s the w3c
validator link:
http://validator.w3.org/check?uri=ht...y%2Fnukes.html

推荐答案

2004年11月7日09:13:33 -0800,Ben Sharvy< sp ****** @ hotmail.com>写道:
On 7 Nov 2004 09:13:33 -0800, Ben Sharvy <sp******@hotmail.com> wrote:
我有一个页面验证,但产生一个关于charset
不匹配的警告。警告声称我在http标头中指定了一个字符集。我没有在http标头中指定一个字符集。是什么赋予了?这里是w3c
验证器链接:
http://validator.w3.org/check?uri=ht...y%2Fnukes.html
I hae a page which validates, but produces a warning about a charset
mismatch. The warning claims I specify a charset in the http header. I
don''t specify a charset in the http header. What gives? Here''s the w3c
validator link:
http://validator.w3.org/check?uri=ht...y%2Fnukes.html




您的主机可能已经为服务器设置了iso-8859-1。


从您的页面:


< META http-equiv =" content-type" content =" text / html; charset = macintosh">


如果你在Apache服务器上,使用.htaccess进行设置可能是明智的:


AddCharset macintosh html

AddType''text / html; charset = macintosh''html


不知道有一个名为''macintosh'的编码,BTW。每天都学习新的东西。



Your host likely already sets iso-8859-1 for the server.

From your page:

<META http-equiv="content-type" content="text/html;charset=macintosh">

If you are on an Apache server, it might be wise to use .htaccess to set:

AddCharset macintosh html
AddType ''text/html; charset=macintosh'' html

Did not know there was an encoding called ''macintosh'', BTW. Learn
something new every day.





Ben Sharvy写道:


Ben Sharvy wrote:
我有一个验证的页面,但会产生关于charset
不匹配的警告。警告声称我在http标头中指定了一个字符集。我没有在http标头中指定一个字符集。是什么赋予了?这里是w3c
验证器链接:
http://validator.w3.org/check?uri=ht...y%2Fnukes.html
I hae a page which validates, but produces a warning about a charset
mismatch. The warning claims I specify a charset in the http header. I
don''t specify a charset in the http header. What gives? Here''s the w3c
validator link:
http://validator.w3.org/check?uri=ht...y%2Fnukes.html




您的服务器(或托管在那些页面上的服务器)确实为具有charset参数的Content-Type发送了一个

HTTP响应头。​​

将ISO-8859-1命名为charset。也许Web服务器被配置为

发送该charset参数,因此您需要与服务器通话

管理员,如果您想更改它。或者也许那个Apache服务器

设置为允许你使用.htaccess文件来改变设置。


-

Martin Honnen
http://JavaScript.FAQTs.com/


* Ben Sharvy在comp.infosystems中写道。 www.authoring.html:
* Ben Sharvy wrote in comp.infosystems.www.authoring.html:
我有一个页面可以验证,但会产生关于字符集
不匹配的警告。警告声称我在http标头中指定了一个字符集。我没有在http标头中指定一个字符集。是什么赋予了?这里是w3c
验证器链接:

http://validator.w3.org/check?uri=ht...y%2Fnukes.html
I hae a page which validates, but produces a warning about a charset
mismatch. The warning claims I specify a charset in the http header. I
don''t specify a charset in the http header. What gives? Here''s the w3c
validator link:

http://validator.w3.org/check?uri=ht...y%2Fnukes.html




你这样做,见例如


* http://cgi.w3.org/cgi-bin/headers?ur ... rvy / nukes.html


这篇关于Charset Mismatch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆