Opera猜测编码“application / xml”的编码 [英] Opera guesses encoding for "application/xml"

查看:77
本文介绍了Opera猜测编码“application / xml”的编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


好​​的,所以在text / html上的位置XHTML完全矛盾。无论如何!

我希望有关于application / xml的更多共识XHTML。


我最近了解到Opera 9.0b2不仅评估HTTP标头,还要评估
BOM和XML声明以确定字符编码XHTML

文件作为application / xml发送,但也是meta文件。元件。对于

示例,< http://schneegans.de/sv/test-cases/?case = meta-only-encoding>是

呈现为?? esk ??共和国" ;.相比之下,Firefox显示?esk?

republika,IE甚至中止解析。


如果您同意我并认为此行为是错了,你可能会想要发布后续信息< news:op ****************** @ news.opera.com> 。


-

所有自由人,无论他们住在哪里,都是丹麦公民。并且因此,作为一名自由人,我为Jeg er dansker!这两个词感到自豪。

解决方案

Christoph Schneegans< Ch ******* @ Schneegans.de>写道:

好的,所以在text / html上的位置XHTML完全矛盾。无论如何!


我还没有看到有人成功地捍卫了一个单独的论点来发送

XHTML作为text / html。一致认为附录C是一个错误。

我希望对application / xml有更多的共识。 XHTML。




XHTML应该作为application / xhtml + xml提供。


-

Spartanicus


星期五,2006年6月9日00:24:19 +0200,Christoph Schneegans

< Ch ****** *@Schneegans.de>写道:

我最近了解到Opera 9.0b2不仅评估了HTTP
标题,还有BOM和XML声明来确定一个字符编码。 XHTML
文档作为application / xml发送,但也是meta。元件。对于
示例,< http://schneegans.de/sv/test-cases/?case = meta-only-encoding>被渲染为?? esk ??共和国" ;.相比之下,Firefox显示?esk?
republika,IE甚至会中止解析。




当我转到该页面时,我看到:


来自服务器的编码(由Opera使用):

iso-8859-2(iso-8859-2)


看起来并不像仅限元......


-

Garmt de Vries


" Spartanicus"写道:

我还没有看到有人成功捍卫单个论点,以便将XHTML作为text / html发送。


对于XHTML?更强大的验证手段,更简单的语法。对于

text / html? IE不会支持它。

一致认为附录C是一个错误。




您的共识。

我希望对application / xml有更多的共识。 XHTML。



XHTML应该作为application / xhtml + xml提供。




这不会改变任何东西,我想你知道的。


-

所有自由人,无论他们住在哪里,都是丹麦公民。并且因此,作为一个自由人,我为Jeg er dansker这个词感到自豪!


Hi!

Okay, so positions on "text/html" XHTML are totally contradicting. Anyway!
I hope there''s more consensus about "application/xml" XHTML.

I''ve recently learned that Opera 9.0b2 does not only evaluate HTTP header,
BOM and XML declaration to determine the character encoding of an XHTML
document sent as "application/xml", but also the "meta" element. For
example, <http://schneegans.de/sv/test-cases/?case=meta-only-encoding> is
rendered as "??esk?? republika". In contrast, Firefox displays "?esk?
republika", and IE even aborts parsing.

If you agree with me and think that this behavior is wrong, you might
want to post a follow-up to <news:op******************@news.opera.com>.

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"

解决方案

Christoph Schneegans <Ch*******@Schneegans.de> wrote:

Okay, so positions on "text/html" XHTML are totally contradicting. Anyway!
I''ve yet to see anyone successfully defend a single argument for sending
XHTML as text/html. The consensus is that Appendix C was a mistake.
I hope there''s more consensus about "application/xml" XHTML.



XHTML should be served as application/xhtml+xml.

--
Spartanicus


On Fri, 09 Jun 2006 00:24:19 +0200, Christoph Schneegans
<Ch*******@Schneegans.de> wrote:

I''ve recently learned that Opera 9.0b2 does not only evaluate HTTP
header,
BOM and XML declaration to determine the character encoding of an XHTML
document sent as "application/xml", but also the "meta" element. For
example, <http://schneegans.de/sv/test-cases/?case=meta-only-encoding> is
rendered as "??esk?? republika". In contrast, Firefox displays "?esk?
republika", and IE even aborts parsing.



When I go to that page, I see:

Encoding from server (used by Opera):
iso-8859-2 (iso-8859-2)

Doesn''t really look like "meta only"...

--
Garmt de Vries


"Spartanicus" wrote:

I''ve yet to see anyone successfully defend a single argument for
sending XHTML as text/html.
For XHTML? More powerful means for validation, simpler syntax. For
text/html? IE wouldn''t support it otherwise.
The consensus is that Appendix C was a mistake.



Your consensus.

I hope there''s more consensus about "application/xml" XHTML.



XHTML should be served as application/xhtml+xml.



That wouldn''t change anything, and I guess you know that.

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"


这篇关于Opera猜测编码“application / xml”的编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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