本文介绍了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!这两个词感到自豪。

解决方案




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


-

Spartanicus





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


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

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


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


-

Garmt de Vries





您的共识。



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!"

解决方案



XHTML should be served as application/xhtml+xml.

--
Spartanicus




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




Your consensus.



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”的编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 20:03