Add or remove byte order marks
A byte order mark (BOM) is a sequence of bytes embedded in some documents that use the Unicode encoding standard. By default, Microsoft Expression Web adds a BOM to new documents that are encoded as Unicode (UTF-8) or Unicode (UTF-16). The BOM helps make sure that your documents are read correctly by some web browsers and server environments.
Expression Web enables you to add or remove a BOM from existing documents encoded as Unicode (UTF-8), and specify whether to add a BOM to new documents encoded as Unicode (UTF-8). If you are working with PHP pages, or use a server or other tools that do not support BOMs, you should not add a BOM to your documents.
To add or not add a BOM to new documents
On the Tools menu, click Page Editor Options.
In the Page Editor Options dialog box, on the Authoring tab, under New Documents, under Add a byte order mark (BOM) to new UTF-8 documents with these file extensions, clear the box next to each file extension you do not want to have a BOM.
To add or remove a BOM from an existing page
Open the web page.
Do one of the following:
On the File menu, click Properties.
In Code view, right-click anywhere in the page, and then click Encoding.
In the Page Properties dialog box, on the Language tab, select or clear Include a byte order mark (BOM).
Note
The option Include a byte order mark (BOM) is not available if Save the document as is not set to Unicode (UTF-8).
To add or remove a BOM from an existing page or other document
Open the document.
In the document, in Code view, right-click anywhere, and then click Encoding.
In the Text File Encoding dialog box, select or clear Include a byte order mark (BOM).
Note
The option Include a byte order mark (BOM) is not available if Save the current file as is not set to Unicode (UTF-8).
See also
Tasks
Set the default HTML file extension
Set document type information
Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.