Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Byte order mark
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Byte-order marks by encoding== This table illustrates how the BOM is represented as a byte sequence in various encodings and how those sequences might appear in a text editor that is [[mojibake|interpreting each byte as a legacy encoding]] ([[Windows-1252]] and [[caret notation]] for the [[C0 and C1 control codes|C0 controls]]): {| class="wikitable" |- ! Encoding ! Representation ([[hexadecimal]]) ! Representation ([[decimal]]) ! Bytes interpreted as Windows-1252 |- | [[UTF-8]]{{refn|This is not literally a "byte order" mark, since a code unit in these encodings is one byte and therefore cannot have bytes in a "wrong" order. Nevertheless, the BOM can be used to indicate the encoding of the text that follows it.<ref name="utf-8-bom"/><ref>{{cite journal|url=http://tools.ietf.org/html/rfc3629#section-6 |title=RFC 3629 - UTF-8, a transformation format of ISO 10646 |newspaper=Ietf Datatracker |date=8 November 2003 |access-date=28 January 2017|last1=Yergeau |first1=François }}</ref>|group=lower-alpha|name=b}} | {{tt|EF BB BF}} | {{tt|239 187 191}} | {{tt|}} |- | [[UTF-16]] ([[Big Endian|BE]]) | {{tt|FE FF}} | {{tt|254 255}} | {{tt|þÿ}} |- | [[UTF-16]] ([[Little Endian|LE]]) | {{tt|FF FE}} | {{tt|255 254}} | {{tt|ÿþ}} |- | [[UTF-32]] (BE) | {{tt|00 00 FE FF}} | {{tt|0 0 254 255}} | {{tt|^@^@þÿ}} ({{tt|^@}} is the [[null character]]) |- | [[UTF-32]] (LE) | {{tt|FF FE 00 00}} | {{tt|255 254 0 0}} | {{tt|ÿþ^@^@}} ({{tt|^@}} is the null character) |- | [[UTF-7]]<ref name=b group=lower-alpha/> | {{tt|2B 2F 76}}<ref group=lower-alpha>Followed by {{code|38}}, {{code|39}}, {{code|2B}}, or {{code|2F}} (ASCII {{code|8}}, {{code|9}}, {{code|+}} or {{code|/}}), depending on what the next character is.</ref><ref>{{Cite web |last=Honermann |first=Tom |date=January 2, 2021 |title=Clarify guidance for use of a BOM as a UTF-8 encoding signature |url=https://unicode.org/L2/L2021/21038-bom-guidance.pdf |website=Unicode}}</ref><ref>{{Cite web|url=https://docs.sdl.com/791187/581899/sdl-contenta-5-7/representations-of-boms-by-encoding|title=SDL Documentation}}</ref> | {{tt|43 47 118}} | {{tt|+/v}} |- | [[UTF-1]]<ref name=b group=lower-alpha/> | {{tt|F7 64 4C}} | {{tt|247 100 76}} | {{tt|÷dL}} |- | [[UTF-EBCDIC]]<ref name=b group=lower-alpha/> | {{tt|DD 73 66 73}} | {{tt|221 115 102 115}} | {{tt|Ýsfs}} |- | [[Standard Compression Scheme for Unicode|SCSU]]<ref name=b group=lower-alpha/> | {{tt|0E FE FF}}{{refn|SCSU allows other encodings of U+FEFF, the shown form is the signature recommended in UTR #6.<ref>{{cite web|author=Markus Scherer |url=https://www.unicode.org/reports/tr6/#Signature |title=UTS #6: Compression Scheme for Unicode |website=Unicode.org |access-date=28 January 2017}}</ref>|group=lower-alpha}} | {{tt|14 254 255}} | {{tt|^Nþÿ}} ({{tt|^N}} is the [[Shift Out and Shift In characters|"shift out" character]]) |- | [[Binary Ordered Compression for Unicode|BOCU-1]]<ref name=b group=lower-alpha/> | {{tt|FB EE 28}} | {{tt|251 238 40}} | {{tt|ûî(}} |- | [[GB 18030|GB18030]]<ref name=b group=lower-alpha/> | {{tt|84 31 95 33}} | {{tt|132 49 149 51}} | {{tt|„1•3}} |} {{Reflist|group=lower-alpha}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)