Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Byte order mark
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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}}
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Byte order mark
(section)
Add topic