Unicode: BOM, Byte Order Mark

By Xah Lee. Date: . Last updated: .

What is Byte Order Mark

Byte Order Mark (BOM, U+FEFF) is a character in Unicode.

Purpose of Byte Order Mark

The BOM character is a invisible character, designed to be placed at the beginning of file, optionally, for 2 purposes:

BOM and UTF-8

ZERO-WIDTH NO-BREAKING SPACE vs WORD JOINER

The BOM char's use as a zero-width no-breaking space is deprecated since Unicode 3.2 (published in 2002). That char's semantic is now for BOM only. โ€œU+2060โ€ (WORD JOINER) is now used for non-breaking space.

Other tips of BOM:

Reference

Unicode and Encoding Explained