windowHDEncodeString Method |
Base64-encodes a string of text. Supports internal encoding in UTF-8 or UTF-16.
JavaScript API:Â Direct
Assembly:Â api.js Version: 1.0.0.0 (1.0.0.0)
Syntax
JavaScript
function HDEncodeString(str, encoding, bom);
Parameters
- str
- Type:Â string
The string of text you wish to encode in Base64. - encoding
- Type:Â string
The internal encoding to use. UTF-8 is used by default; you can also request "UTF-16LE" or "UTF-16BE". - bom
- Type:Â boolean
Indicates whether or not you wish to include a byte order mark in the encoded byte stream. (If this parameter is omitted, the default is false.)
Return Value
Type:Â stringThe base64-encoded string.
See Also