åxml文件是否有效? [英] å in xml file is valid or not?
问题描述
IE不希望显示XML文件中的å字符。
是IE问题,还是å字符确实无效XML,我必须创建& #xxx;吗?
IE doesn't like the å character in an XML file to display. Is that an IE problem or are å and alike chars indeed invalid XML and do i have to create the &#xxx; values for all these letters?
Michel
顺便说一句:字符位于CDATA标记内
by the way: the chars are inside a CDATA tag
声明是这样的:
嗯,似乎无法将xml声明粘贴到我的帖子中,它被删除或隐藏在我帖子的html中想想,尝试了反引号,4个空格等将其标记为代码。但是,它与答案中的sais相同。
The declaration is this: hmm, can't seem to get the xml declaration pasted in my post, it gets deleted or hidden in the html of my post i think, tried the backtick, 4 spaces etc to mark it as code. However, it's the same as sais in the answers
声明是这样的:
<?xml version="1.0" encoding="utf-8"?>
代码段为
<resource key="erroraspx-errorDescription" value="cdata">
<![CDATA[Något gick fel. Klicka <a href=".">här</a> för att gå till webbsidan ]]>
</resource>
推荐答案
我很确定这是一个编码问题。您需要检查文件的编码确实是国际化的,例如UTF-8,并且xml标头指示了这一点。
I am pretty sure that this is an encoding problem. You need to check that the encoding of your file is indeed something internationalised, like UTF-8, and that the xml header indicates this.
xml文件应以$开头b $ b <?xml version = 1.0 encoding = UTF-8?>
The xml file should start with
<?xml version="1.0" encoding="UTF-8"?>
这篇关于åxml文件是否有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!