Tipskey
Byte Order Mark Is Removable
W3C
This is a short guide to eliminate the following warning when checking a page using W3C Markup Validation Service.
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 browser. You may want to consider avoiding its use until it is better supported.

To fix this, just remove byte order mark (BOM). This can be easily done in two ways.

Using a free program called Notepad++
  1. Open the web page file in Notepad++.
  2. Go to Encoding on the menu bar and select "Encode to UTF-8 without BOM".
  3. Save the file and republish it.
Using another free program called Expression Web 4
  1. Open the web page file in Expression Web.
  2. Go to "File" on the menu bar and select "Properties...".
  3. In "Page Properties" dialog box, select "Language" tab. Note that the tab will only appear if the open page has no an unsaved change.
  4. Uncheck "Include a byte order mark (BOM)" box.
  5. Save the file and republish it.

When Expression Web 4 creates a new html file that is encoded as Unicode UTF-8, it adds BOM to the new file by default. The following way is to prevent Expression Web adding BOM to a new html file.

  1. In Expression Web, go to "Tools" on the menu bar and select "Page Editor Options..."
  2. In "Page Editor Options" dialog box, select "Authoring" tab.
  3. In "New Documents" section, uncheck all boxes under "Add a byte order mark (BOM) to new UTF-8 documents with these file extensions".
  4. Click OK.
Posted: 2016-10-28 by Ong Seng Aun.
Home       About       Privacy       XHTML 1.0 Strict