OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Convert a list of integers to a string representing binary 16-bit unsigned integers:

s = ExportString[{945,946},"UnsignedInteger16"]

Convert the binary data back to a list of integers:

ImportString[s,"UnsignedInteger16" ]

Show the byte values of the exported data:

ImportString[s,"Byte"]

Import as 16-bit Unicode characters:

ImportString[s,"Character16"]

Interpret as raw 16-bit Unicode text:

ImportString[s,"Text", CharacterEncoding-> "Unicode"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Formats:  (RefLink[Binary, paclet:ref/format/Binary])  ▪  (RefLink[Bit, paclet:ref/format/Bit])  ▪  (RefLink[Byte, paclet:ref/format/Byte])  ▪  (RefLink[Character8, paclet:ref/format/Character8])  ▪  (RefLink[Character16, paclet:ref/format/Character16])  ▪  (RefLink[Character32, paclet:ref/format/Character32])  ▪  (RefLink[Integer8, paclet:ref/format/Integer8])  ▪  (RefLink[Integer16, paclet:ref/format/Integer16])  ▪  (RefLink[Integer24, paclet:ref/format/Integer24])  ▪  (RefLink[Integer32, paclet:ref/format/Integer32])  ▪  (RefLink[Integer64, paclet:ref/format/Integer64])  ▪  (RefLink[Integer128, paclet:ref/format/Integer128])  ▪  (RefLink[UnsignedInteger8, paclet:ref/format/UnsignedInteger8])  ▪  (RefLink[UnsignedInteger16, paclet:ref/format/UnsignedInteger16])  ▪  (RefLink[UnsignedInteger32, paclet:ref/format/UnsignedInteger32])  ▪  (RefLink[UnsignedInteger64, paclet:ref/format/UnsignedInteger64])  ▪  (RefLink[Real32, paclet:ref/format/Real32])  ▪  (RefLink[Real64, paclet:ref/format/Real64])  ▪  (RefLink[Real128, paclet:ref/format/Real128])  ▪  (RefLink[Complex64, paclet:ref/format/Complex64])  ▪  (RefLink[Complex128, paclet:ref/format/Complex128])  ▪  (RefLink[Complex256, paclet:ref/format/Complex256])  ▪  (RefLink[String, paclet:ref/format/String])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Listing of All Formats, paclet:guide/ListingOfAllFormats])}})}})