你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

base64_decode_tostring()

将 base64 字符串解码为 UTF-8 字符串。

弃用的别名:base64_decodestring()

语法

base64_decode_tostring(base64_string)

详细了解语法约定

参数

名称 类型 必需 描述
base64_string string ✔️ 要从 base64 解码为 UTF-8 字符串的值。

返回

返回从 base64 字符串解码的 UTF-8 字符串。

示例

print Quine=base64_decode_tostring("S3VzdG8=")

输出

Quine
Kusto

尝试解码从无效 UTF-8 编码生成的 base64 字符串将返回 null:

print Empty=base64_decode_tostring("U3RyaW5n0KHR0tGA0L7Rh9C60LA=")

输出