一个base64恩codeD字符串可以包含空格? [英] Can a base64 encoded string contain whitespace?
问题描述
也许一个base64连接codeD字符串包含空格?具体来说,可以将其在字符串的结束的包含空格?
Might a base64 encoded string contain whitespace? Specifically, could it contain whitespace at the end of the string?
PS。我想整个中的MySQL VARCHAR字段存储字符串时,将削减尾随空白在这里; - )
PS. I'm thinking about the whole "MySQL will trim trailing whitespace when storing strings in VARCHAR fields" here ;-)
推荐答案
没有它不能。请参见的Base64 由的base64
,这是用于允许的字符库字符 AZ
, AZ
, 0-9
, +
和 /
(最后两个可能因执行不同),以及填充字符 =
(但是这也取决于实现方式为一些实现不使用填充在所有)。
No it can't. See Base64 for the allowed character repository used by base64
, which are the characters A-Z
, a-z
, 0-9
, +
and /
(the last two may differ depending on the implementation) as well as the padding character =
(but that's also implementation dependent as some implementations don't use padding at all).
这篇关于一个base64恩codeD字符串可以包含空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!