2.2.1.3 "Encoded-Block" Syntax Element

 Because the .nsc file format only allows ASCII characters, binary data and Unicode character strings MUST be encoded by using characters from the ASCII character set. This is accomplished by using a two-step process:

  1. Create an EncodedDataHeader data structure, as specified in section 2.2.1.3.1, and fill in the fields in that structure.

  2. Encode the data structure, followed by the encoded binary data, or Unicode string, by using the encoding algorithm as specified in Encoding of Binary Data (section 2.2.1.3.2). The encoding MUST be done in a single step so that it treats the EncodedDataHeader and the binary data as a single block of binary data.

The resulting ASCII character string MUST be written to the .nsc file according to the ABNF syntax for the "encoded-block" element, which is as specified in ABNF Syntax for NSC Files (section 2.2.1.1).