unicode元标记,http标头 [英] unicode meta tag, http header

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

问题描述

如果Http标题指定了字符编码,那么指定它的Meta标签是什么意思?

If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?

推荐答案

2004年7月8日10:04:14 -0700,Anon< q _ *********** @ yahoo.co.uk>写道:
On 8 Jul 2004 10:04:14 -0700, Anon <q_***********@yahoo.co.uk> wrote:
如果Http标题指定字符编码,那么指定它的元标记有什么意义?
If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?



它字面上是HTTP-EQUIV。在像免费网站空间这样的情况下,你不能修改实际的标题,这是等价的。这样做

服务器级别更可取。


It''s literally an HTTP-EQUIV. In cases like a free webspace, where you
cannot modify the actual headers, this is an equivalent. Doing it
server-level is preferable.


Anon写道:
如果Http标头指定了字符编码,
Meta标签指定它的意义是什么?
If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?




1)作为一种为不能或不能赢的人指定它的低级方法't

让他们的服务器发送正确的HTTP标头。


2)因为一些创作工具将此代码排除在糟糕的HTML中

它创建了。


3)因为页面作者看到其他页面使用它并且无意识地

以货物崇拜的方式模仿它们。


4)因为页面需要在非HTTP上下文中使用,例如在硬盘或CD-ROM上本地浏览,或者上传以进行验证,

,其中没有HTTP标头,因此META标签必须这样做,低于它可能是




什么'真的很有趣的是当一个页面提供矛盾时ctory

HTTP标头及其META标签中的信息;在这种情况下,一些

浏览器(例如,Mozilla)正确遵循标准并尊重

HTTP标头,忽略了相互矛盾的META信息,而其他人则

(例如,MSIE)做相反的事情,导致看似工作的页面。在

一个浏览器中但在其他浏览器中出现乱码。



1) As an inferior method of specifying it for people who can''t or won''t
get their server to send proper HTTP headers.

2) Because some authoring tool excreted this code into the crappy HTML
it created.

3) Because the page author saw other pages using it and mindlessly
imitated them in cargo-cult manner.

4) Because the page needs to be used in non-HTTP contexts, such as being
browsed locally on a hard disk or CD-ROM, or uploaded to be validated,
where no HTTP headers are present so the META tag must do, inferior as
it may be.

What''s really fun is when a page is served with contradictory
information in the HTTP headers and its META tag; in that case, some
browsers (e.g., Mozilla) follow the standards properly and respect the
HTTP headers, ignoring the contradictory META information, while others
(e.g., MSIE) do the opposite, leading to pages that seem to "work" in
one browser but come out garbled in others.


Neal写道:
Neal wrote:
On 8 2004年7月10:04:14 -0700,Anon< q _ *********** @ yahoo.co.uk>写道:
On 8 Jul 2004 10:04:14 -0700, Anon <q_***********@yahoo.co.uk> wrote:
如果Http标题指定字符编码,那么Meta标签指定它的意义是什么?
If Http headers specify the character encoding, what is the point of
the Meta tag specifying it?



它字面上是HTTP-EQUIV。在像免费网站空间这样的情况下,你无法修改实际的标题,这是一个等价的。这样做最好是服务器级别。



It''s literally an HTTP-EQUIV. In cases like a free webspace, where you
cannot modify the actual headers, this is an equivalent. Doing it
server-level is preferable.




当然,如果页面保存在META元素中,它也会保留。


有时候没有服务器(例如CD上的html文件)所以它应该是

在那里使用。


-

Matt

----- =通过Newsfeeds.Com发布,未经审查的Usenet新闻= -----
http://www.newsfeeds.com - 世界排名第一的新闻组服务!

----- ==超过100,000个新闻组 - 19个不同的服务器! = -----



Of course, it also stays if the page is saved if it''s in a META element.

Sometimes there isn''t a server (e.g. html files on a CD) so it should be
used there.

--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----


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

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