Script functions reference > Script functions in alphabetical order > B > Base64EncodeStringUsingCodepage

Base64EncodeStringUsingCodepage
Syntax
Base64EncodeStringUsingCodepage(InputStr, Codepage);
InputStr
Codepage
Description
Encodes a text string to base64 format. Before encoding the text string, it is converted to the specified codepage. This function is used instead of Base64EncodeString if the receiving system does not handle Unicode.
Returns
The encoded string. If encoding fails an empty string is returned.
Example
$encoded_string = base64EncodeStringUsingCodepage($string, "iso 8859-1");
OpenText StreamServe 5.6.2 Updated: 2018-01-26