StringOf

Create a Unicode string from an array of bytes

Declaration

Source position: sysunih.inc line 66

  function StringOf(const Bytes: TBytes) : UnicodeString;

Description

StringOf converts an array of bytes (Bytes) to a Unicode string. It interprets the bytes as a single-byte string, using the default codepage.

To create a string where the bytes are interpreted as wide chars, use WideStringOf instead.

Errors

None.

See also

Name Description
WideBytesOf Returns the contents of a widestring as an array of bytes
WideStringOf Create Unicode string from array of bytes