DS Server

Javascript: TXTextControl.atobUTF8 Method

Method|Introduced in 27.0

Description

Decodes a string of data which has been encoded using base-64 encoding.

Syntax

<string> TXTextControl.atobUTF8(<string> inputString, [<boolean> keepBOM])

Parameters

ParameterDescription
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);