Javascript: TXTextControl.atobUTF8 Method
Description
Decodes a string of data which has been encoded using base-64 encoding.
Syntax
<string> TXTextControl.atobUTF8(<string> inputString, [<boolean> keepBOM])Parameters
| Parameter | Description |
|---|---|
| inputString | A base-64 encoded unicode string. |
| keepBOM | Optional. Set this to true in case the original string had a byte order mark and you want to keep it. |
Return Value
The original unicode string.
Examples
The following example demonstrates TXTextControl.atobUTF8 in a practical document-editing workflow. Decodes a string of data which has been encoded using base-64 encoding.
TXTextControl.atobUTF8("Quarterly report", true);