Zoomed Image

AMSX Scripting Language - Command : Base64Encode

Summary

Encode a string as a Base64 URL-safe value using a specified character encoding

Description

Converts the input string to bytes using the specified character encoding, then encodes the bytes as a Base64 URL-safe string (no standard padding characters). Use this variant when you need explicit control over the text encoding, for example when the input may contain non-ASCII characters.

Parameters

ParameterDescription
cmdthe string to encode
Argument 0character encoding to use when converting to bytes: utf8, unicode, or leave blank for ascii

Syntax


Base64Encode "the string to encode", "character encoding to use when converting to bytes: utf8, unicode, or leave blank for ascii"

Return to the AMSX Command Reference