Byte_Order_Mark Byte_Order_Mark

Byte Order Mark - Definition and Overview

Related Words: Action, Affiliation, Algorithm, Allocation, Allotment, Amendment, Analyze
Unicode
series
Unicode
UCS
UTF-7
UTF-8
UTF-16
UTF-32
SCSU
Punycode
Bi-directional text
BOM
Han unification
Unicode and HTML


A Byte Order Mark (BOM) is the character at code point FEFF (ZERO-WIDTH NO-BREAK SPACE), when that character is used to denote the Endianness of a string of UCS/Unicode characters encoded in UTF-16 or UTF-32.

A BOM can also be used to indicate the encoding of unlabeled text in many Unicode encodings. In most encodings the BOM is a sequence which is unlikely to be seen in more conventional encodings or other Unicode encodings (usually looking like a sequence of obscure control codes). If a BOM is misinterpreted as an actual character within the text then it will generally be invisible due to the fact it is a ZERO-WIDTH NO-BREAK SPACE. Some consider such use of the BOM to be misuse though such use is specifically mentioned in official Unicode documents and is never called misuse there.

In UTF-16, a BOM is expressed as the 2 byte sequence FE FF at the beginning of the encoded string, to indicate that the encoded characters that follow it use big-endian byte order; or it is expressed as the byte sequence FF FE to indicate little-endian order.

UTF-8 text can also use a BOM and quite a lot of windows software adds one to UTF-8 files. However in Unix-like systems (which make heavy use of text files for configuration) this practice is not recommended as it will interfere with correct processing of important codes such as the hash-bang at the start of a file. The UTF-8 representation of the BOM is the byte sequence EF BB BF.

Whilst a BOM could be used with UTF-32 this encoding is almost never used for transmission anyway.

Representations of Byte Order Marks by Encoding

External links

See also

Example Usage of Order

NeoFresh: RT @ChrisBrownWeb: GRAFFITI: iTunes and Amazon Updates!: Chris Brown Graffiti album and Deluxe CD are now available for pre-Order on i.. ...
louisetorp: #american apparel I paid for my Order one month ago but haven’t received anything I cant get in contact with you. I am getting a bit piss
Shadesh: Pizza.de is down... falling back to phone? Or fax? OMG how can i use that two things? There is no addressbar where i can type my Order #fail
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.