How to encode bytes as a printable unicode string (like base64 for ascii)

590 views Asked by At

I am looking for an encoding of arbitrary byte data into an unicode string, that only contains printable characters, much like base64 for ascii.

I would be happy to find such an encoding for any unicode version.

1

There are 1 answers

0
Nick Russler On BEST ANSWER

The UniBinary library seems to do what i am looking for:

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.