Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Byte-Order Mark found in UTF-8 File
sjeeps
✭
Hi,
When using W3.org html validator to test my site page, I get this error:
<code>
Byte-Order Mark found in UTF-8 File.
The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.</code>
I've downloaded Notepad2 and used it to see where's the error is but I couldn't find any!
And when viewing the source code using iwebtools source code viewer I see this:
<code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
<head>
</code>
Any thoughts?
Thanks.
0
This discussion has been closed.
Comments
If they don't show up in Notepad2 just hit forward delete 4 times after <code>
I sometimes get this in PHP or JavaScript code, usually caused by typing option-characters on a Mac or hitting delete with the option-key or control-key held down.
Posted: Tuesday, 17 April 2007 at 4:32PM
So you know where they are, so keep forward deleting until a character you can see disappears, then put it back.
Posted: Tuesday, 17 April 2007 at 5:14PM
Are you using any language file?
If it's BOM, it only exists in PHP file. When you save *utf8* file with some editor(like windows notepad), it will add a BOM on the file header.
Almost all editor can't view it, but it can be removed with some editor.
Since I haven't viewed the html source file, I can't confirm it.
// You can check the html source header with hex code viewer, the BOM is 0xFE 0xBB 0xBF on the file header.