SoftadminUtil.TextEncoding_StringToBytes

Not available in Cloud edition.
Type: Scalar function

Encodes text using the specified encoding.

Return value: varbinary(max)

The text encoded as bytes.

Parameters

@Text mandatory nvarchar(max)
The text to encode.
@Encoding mandatory nvarchar(300)
The encoding to use. This can be a string such as 'us-ascii', 'utf-8' or 'iso-8859-1'. It can also specify a windows code page, such as 1252.