Go to documentation repository
Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.
Previous page Next page
The Base64EncodeW method encodes a Unicode string to Base64. The method returns a string.
See also The Base64Decode method.
Method call syntax:
function Base64EncodeW (data_in: String): String
Method arguments:
- data_in – required argument. Sets a string to be encoded.
Example. Encode a Unicode string to Base64 then decode and put to the debug log.
var test = Base64EncodeW("test comment"); //the "test" variable will have value like "MAAzAC0AMAA3AC0AMgAwADEAOQAgADEANQA6ADMAOQA6ADQAMAA6AA0ACgB0AGUAcwB0ACAAMQANAAoAMAAzAC0AMAA3AC0AMgAwADEAOQAgADEANQA6ADQAMgA6ADIAMQA6AA0ACgB0AGUAcwB0ACAAMgA=" var res = Base64Decode(test, true); // decode from Base64 to Unicode; if false, then 0 returned DebugLogString("--->"+res); // the debug log shall say: "test comment"
Overview
Content Tools