Stateful Encodings
The parser can read any well-formed document that adheres to the rules of the document’s particular kind of encoding. The parser can only write to files that have fixed length fields or delimited records.
Note: | Escape encodings behave similarly to stateful encodings. The parser truncates characters preceding the escape sequence so that the integrity of the escape sequence is maintained. |
Stateful encodings have two specific bytes that indicate when the record’s state has changed:
| is a “shift-in” byte that indicates a change from the normal state to an alternate state
O (the character O, not zero) is a “shift-out” byte that indicates a change from the alternate state to the normal state