...字符和 US-ASCII 以外的字符,UTF-7 采用变字节顺序的方法进行解码,并使用 US-ASCII 中的保留字符作为转换字符(shift character)。以下是 UTF-7 编码和解码规则的说明。
基于1个网页-相关网页
当将字符串作为布尔值使用时,将首先把字符串转换为整数,然后再计算真(非0)或假(0)。
When a string is used as a Boolean, it is first converted to an integer, and then evaluated for truth (non-zero) or falsehood (zero).
作为最后的手段,您可以尝试通过替换表示CR, LF等的特殊字符将多行字符串转换为长字符串。
And, as a last resort, you can try converting the multi-line string into a long string by replacing the special characters that represent CR, LF, etc.
应用推荐