Skip to main content

EncodeBytes

EncodeBytes Function

Converts the input string to bytes using the specified encoding.

Syntax

EncodeBytes (scalar String, scalar EncodingType)

Arguments

ArgumentDescription
scalar StringA string to be encoded
scalar EncodingTypeThe encoding format to which the string has to be converted

Examples:

ToString(EncodeBytes("hello","utf-8"))

Returns a string of hexadecimal values in "utf-8" format.