Nick Russler
Nick Russler

Reputation: 4694

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

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.

Upvotes: 0

Views: 663

Answers (1)

Nick Russler
Nick Russler

Reputation: 4694

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.

Upvotes: 1

Related Questions