Creates a base-64 encoded ASCII string from a unicode string. In contrast to the browser provided method btoa() this method handles all unicode characters and not only characters in the Latin1 range.
Introduced: X17.
<string> TXTextControl.btoaUTF8(<string> inputString, [<boolean> addBOM])
Parameter | Description |
---|---|
input |
A unicode string to be encoded into base-64. |
add |
Optional. Set this to true if a byte order mark should be added to the encoded string. |
A base-64 encoded string.