SoftadminUtil.TextEncoding_StringToBytes

 Show all Hide all

Encodes text using the specified encoding.

Type: Scalar function
Area of use: General use

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.