ByteArrayToString

ByteArrayToString[ba]

returns a string by decoding the data in the byte array ba, assuming UTF-8 encoding.

ByteArrayToString[ba,"encoding"]

interprets the data in the specified character encoding.

Details

Examples

open allclose all

Basic Examples  (2)

Create a string from a ByteArray, assuming it contains UTF-8 data:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Create a string from a ByteArray, interpreting the data as ISO 8859-7 Latin/Greek:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (2)

Applications  (1)

Properties & Relations  (4)

Possible Issues  (1)

See Also

StringToByteArray  FromCharacterCode  $CharacterEncodings  ImportByteArray  ByteArray  String

Introduced in 2017
(11.2)