The character encoding to use. Specify as a named parameter with one of these values: ASCII, UTF-7, UTF-8, UTF-16, or UTF-32.
abortSendOnFail
Boolean
Indicates whether to abort a send if stringToDecode can’t be decoded. Specify as a named parameter.
Return Value
The function returns the decoded plain-text value.
Usage Example
This example decodes a Base64-encoded coupon code that was retrieved from a marketing object so that it can be displayed to a subscriber as plain text.
1{{base64Decode "NmRuMjh1cXhvY3F1"}}
The function returns this decoded string:
16dn28uqxocqu
Handling Decoding Failures
This example decodes a value that isn’t valid Base64 data, and sets the value of abortSendOnFail to false so that an email send continues even if decoding fails.