同一个"数字域"或"长度前缀",不同卡组可能用不同编码:压缩 BCD(每字节两位数字)、EBCDIC(IBM 大型机字符集)、或 ASCII。一条报文里还常常混用——数字域走 BCD、文本域走 EBCDIC、芯片域走二进制。这是新手最容易踩的坑:用单一编码整条硬解必然错位。The same numeric field or length prefix may use different encodings across schemes: packed BCD (two digits per byte), EBCDIC (IBM mainframe charset), or ASCII. A single message often mixes them — numeric in BCD, text in EBCDIC, chip data in binary. This is the classic beginner trap: decoding the whole message with one encoding inevitably misaligns.
有的卡组在 MTI 之前带一段**自描述头**(第一字节表示头长度),里面装报文总长、格式标志等;有的卡组则**没有头**,MTI 直接开头。解析前先判断"要不要剥头、剥几字节",否则 MTI 和位图会整体错位。Some schemes prepend a self-describing header before the MTI (first byte = header length) carrying total length, format flags, etc.; others have no header and start straight at the MTI. Decide "strip a header or not, and how many bytes" first, or the MTI and bitmap shift as a block.
标准是主位图 + 可选副位图(共 128 域)。部分卡组支持**第三张位图**(域 129–192)以承载更多私有字段。解析时要根据位图首位、以及第 65 位是否置位,判断后面还有几张位图。The standard is a primary plus optional secondary bitmap (128 DEs). Some schemes support a third bitmap (DEs 129–192) for extra private fields. Check bit 1 and bit 65 to know how many bitmaps follow.
| DE | 典型用途Typical use | 格式差异Format difference |
|---|---|---|
| DE48 | 附加私有数据Additional private data | 部分卡组用 PDS(子域 tag+len+value)结构Some use PDS (tag+len+value subfields) |
| DE55 | EMV 芯片数据EMV chip data | 都是 BER-TLV,但长度前缀编码/字节数各异All BER-TLV, but length-prefix encoding/size varies |
| DE62 / 63 | 交换 / 网络私有数据Switching / network private data | 常含卡组自定义子位图,口径完全私有Often carry scheme-specific sub-bitmaps; fully private layouts |
👉 本站解析工具支持按卡组切换 + 编码自动识别,粘贴报文即可看到逐域拆解。相关:ISO 8583 入门、EMV 术语表。👉 The parser tool here supports per-scheme parsing + auto encoding detection. Related: ISO 8583 basics, EMV glossary.