base64_decode_tostring()base64_decode_tostring()
将 base64 字符串解码为 UTF-8 字符串。Decodes a base64 string to a UTF-8 string.
语法Syntax
base64_decode_tostring(
String)
base64_decode_tostring(
String)
参数Arguments
- String :输入要从 base64 解码为 UTF-8 字符串的字符串。String : Input string to be decoded from base64 to UTF8-8 string.
返回Returns
返回从 base64 字符串解码的 UTF-8 字符串。Returns UTF-8 string decoded from base64 string.
- 若要将 base64 字符串解码为长值数组,请参阅 base64_decode_toarray()To decode base64 strings to an array of long values, see base64_decode_toarray()
- 若要将字符串解码为 base64 字符串,请参阅 base64_encode_tostring()To decode strings to base64 string, see base64_encode_tostring()
示例Example
print Quine=base64_decode_tostring("S3VzdG8=")
QuineQuine |
---|
KustoKusto |
如果尝试对通过无效 UTF-8 编码生成的 base64 字符串进行解码,将返回 null:Trying to decode a base64 string that was generated from invalid UTF-8 encoding will return null:
print Empty=base64_decode_tostring("U3RyaW5n0KHR0tGA0L7Rh9C60LA=")
空Empty |
---|