Imported from previous forum
[ original email was from tedware@cris.com - ]
To me it is unclear in the spec as to whether the raw data
type fields also have an SOH character at the end of the
data. The length field preceding is enough information to
extract the data but the spec implies that "all" fields
are terminated by the SOH character. Thanks, Ted
Yes, all fields should be tag, equals sign, value, and SOH delimiter. The RawData field would have a SOH at the end but the RawDataLength value would not include the SOH. Note that the field could contain embedded NULLs or SOHs so one would want to use the Length field to extract the value. Same is true for SecureData and Signature fields.
> To me it is unclear in the spec as to whether the raw data
> type fields also have an SOH character at the end of the
> data. The length field preceding is enough information to
> extract the data but the spec implies that "all" fields
> are terminated by the SOH character. Thanks, Ted
>