为什么是出现在我的HTML? [英] Why is  appearing in my HTML?

查看:113
本文介绍了为什么是出现在我的HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Firebug中看到这个字符



我不知道为什么会这样正在发生,我的代码中没有这样的字符。对于Firefox而言,这是可以的,但在IE中一切都会中断。我甚至无法在Google中搜索这个角色。



我用utf-8编码保存了我的文件,但没有bom。



解决方案

所涉及的字符&#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 &#65279 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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