The byte order mark (BOM) is a Unicode character used to signal the endianness (byte order) of a text file or stream. It is encoded at U+FEFF byte order mark (BOM). BOM use is optional, and, if used, should appear at the start of the text stream. Beyond its specific use as a byte-order indicator, the BOM character may also indicate which of the several Unicode representations the text is encoded in.
Because Unicode can be encoded as 16-bit or 32-bit integers, a computer receiving these encodings from arbitrary sources needs to know which byte order the integers are encoded in. The BOM gives the producer of the text a way to describe the text stream's endianness to the consumer of the text without requiring some contract or metadata outside of the text stream itself. Once the receiving computer has consumed the text stream, it presumably processes the characters in its own native byte order and no longer needs the BOM. Hence the need for a BOM arises in the context of text interchange, rather than in normal text processing within a closed environment.
Read more about Byte Order Mark: Usage, Representations of Byte Order Marks By Encoding
Famous quotes containing the words order and/or mark:
“You cannot have one well-bred man without a whole society of such. They keep each other up to any high point. Especially women;Mit requires a great many cultivated women,saloons of bright, elegant, reading women, accustomed to ease and refinement, to spectacles, pictures, sculpture, poetry, and to elegant society, in order that you have one Madame de StaĆ«l.”
—Ralph Waldo Emerson (18031882)
“Awake,
My fairest, my espoused, my latest found,
Heavens last best gift, my ever new delight,
Awake, the morning shines, and the fresh field
Calls us: we lose the prime, to mark how spring
Our tended plants, how blows the citron grove,
What drops the myrrh and what the balmy reed,
How nature paints her colors, how the bee
Sits on the bloom extracting liquid sweet.”
—John Milton (16081674)