如何将字节编码为可打印的 unicode 字符串(如 base64 for ascii)
How to encode bytes as a printable unicode string (like base64 for ascii)
我正在寻找一种将任意字节数据编码为 unicode 字符串的方法,它只包含可打印字符,很像 base64 的 ascii。
我很乐意为任何 unicode 版本找到这样的编码。
UniBinary library 似乎符合我的要求:
UniBinary is an encoding algorithm which packs arbitrary data into
printable Unicode characters.
It can be used to send data through media such as Twitter which don't
allow binary data but allow Unicode characters.
我正在寻找一种将任意字节数据编码为 unicode 字符串的方法,它只包含可打印字符,很像 base64 的 ascii。
我很乐意为任何 unicode 版本找到这样的编码。
UniBinary library 似乎符合我的要求:
UniBinary is an encoding algorithm which packs arbitrary data into printable Unicode characters.
It can be used to send data through media such as Twitter which don't allow binary data but allow Unicode characters.