BOM

出自ProgWiki
跳至導覽 跳至搜尋

BOM(Byte order mark),參照:『維基百科~Byte_order_mark

編碼

字元編碼 BOM
UTF-8 EF BB BF
UTF-16 (BE) FE FF
UTF-16 (LE) FF FE
UTF-32 (BE) 00 00 FE FF
UTF-32 (LE) FF FE 00 00
UTF-7 2B 2F 76 38

2B 2F 76 39
2B 2F 76 2B
2B 2F 76 2F
2B 2F 76 38 2D

UTF-1 F7 64 4C
UTF-EBCDIC DD 73 66 73
SCSU 0E FE FF
BOCU-1 FB EE 28
GB-18030 84 31 95 33

檔案類型

附檔名 BOM Magic number 類型
.bmp 42 4D BM 2D圖檔
.exe 4D 5A MZ 執行檔
.gif 47 49 46 38 39 61
47 49 46 38 37 61
GIF89a
GIF87a
2D圖檔
.jpg FF D8 FF 2D圖檔
.zip 50 4B PK 壓縮檔