base64.decode

base64.decode

base64.decode

Function

Decode the Base64 string held in base64(text) to UTF-8 text.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
modeIntNo0Coding table: 0 BASE64_STANDARD, 1 BASE64_STANDARD_NO_PAD, 2 BASE64_URL_SAFE, 3 BASE64_URL_SAFE_NO_PAD.

Return value

TypeDescription
StringReturns the decoded string.

Example

Notes

  • An error will be reported if the decoding result is not a legal UTF-8 string.