The problem you are facing is that you defined your own type of byte array as follows:
type
TBuff = array of Byte;
, . RTL, , RTL TBytes, TArray<Byte>.
, , TBuff TBytes. TBuff, , , , TBytes. , TBuff .
, , . StringOf, . TEncoding.
, - UTF-8, :
str := TEncoding.UTF8.GetString(ByteArray);
ANSI, :
str := TEncoding.ANSI.GetString(ByteArray);
StringOf , ANSI, - , .