EncodeBytes
EncodeBytes Function
Converts the input string to bytes using the specified encoding.
Syntax
EncodeBytes (scalar String, scalar EncodingType)
Arguments
| Argument | Description |
|---|---|
scalar String | A string to be encoded |
scalar EncodingType | The 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.