Export (0) Print
Expand All

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

  1. On the Tools menu, click Page Editor Options.

  2. 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

  1. Open the web page.

  2. Do one of the following:

    • On the File menu, click Properties.

    • In Code view, right-click anywhere in the page, and then click Encoding.

  3. In the Page Properties dialog box, on the Language tab, select or clear Include a byte order mark (BOM).

    Cc295463.alert_note(en-us,Expression.10).gifNote:

    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

  1. Open the document.

  2. In the document, in Code view, right-click anywhere, and then click Encoding.

  3. In the Text File Encoding dialog box, select or clear Include a byte order mark (BOM).

    Cc295463.alert_note(en-us,Expression.10).gifNote:

    The option Include a byte order mark (BOM) is not available if Save the current file as is not set to Unicode (UTF-8).

Community Additions

ADD
Show:
© 2014 Microsoft