Background & Context

    • Sequence of 16-bit characters.
    • Raw binary format.

Import & Export

  • Import["file","Character16"] imports any file, returning a list of 16-bit characters.
  • Export["file",list,"Character16"] exports a list of 16-bit characters to file.
  • Import["file",{"Character16",elem}] or Import["file",elem ] imports the specified element from file.
  • Import["file",{"Character16",{elem1,elem2,}}] imports multiple elements.
  • See the following reference pages for full general information:
  • Import, Exportimport from or export to a file
    CloudImport, CloudExportimport from or export to a cloud object
    ImportString, ExportStringimport from or export to a string
    ImportByteArray, ExportByteArrayimport from or export to a byte array

Import Elements

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Summary"summary of the file
    "Rules"list of rules for all available elements
  • Data representation element:
  • "Data"list of 16-bit characters
  • By default, Import and Export use the "Data" element.
  • Import["file",{"Character16",n}] gives the n^(th) 2-byte character.



Basic Examples  (1)

Convert a list of characters to a string representing a 16-bit character array:

Show the character codes corresponding to the previous result:

Convert back to a list of characters: