问题描述
我在Firebug中看到这个字符
所涉及的字符&#65279 是Unicode字符'ZERO WIDTH NO- BREAK SPACE'(U + FEFF)。这可能是你通过复制/粘贴将它复制到代码中而没有意识到它。它不可见的事实使得很难判断你是否使用了显示实际unicode字符的编辑器。
一种选择是以非常基本的方式打开文件文本编辑器不理解unicode,或者理解它,但能够使用它们的实际代码显示任何非ascii字符的功能。
一旦找到它,您可以删除它周围的小块文本并手动重新输入该文本。
I see this character in Firebug .
I don't know why this is happening, there's no such character in my code. For Firefox it's OK, but in IE everything breaks. I can't even search for this character in Google.
I saved my file with utf-8 encoding without bom.
The character in question  is the Unicode Character 'ZERO WIDTH NO-BREAK SPACE' (U+FEFF). It may be that you copied it into your code via a copy/paste without realizing it. The fact that it's not visible makes it hard to tell if you're using an editor that displays actual unicode characters.
One option is to open the file in a very basic text editor that doesn't understand unicode, or one that understands it but has the ability to display any non-ascii characters using their actual codes.
Once you locate it, you can delete the small block of text around it and retype that text manually.
这篇关于为什么是出现在我的HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!