> Yes. RFC 1924 specifies a way to convert an IPv6 address to ASCII, by
> treating it as 128 bit integer, writing the number in base 85, then
> expressing
> each base 85 digit as an ASCII character
>
> btoa and PDFs break up a stream of bytes into ASCII by treating it as 32
> bit
> integers (4 bytes become 5 ASCII characters), and (in the case of PDFs)
> then
> representing last odd 1 to 3 bytes as 2 to 4 ASCII characters. They also
> use
> a different subset of printable ASCII from RFC 1924
>
> Nicholas Clark

Given that, I second RJBS' suggestion of String::Base85 (or perhaps
String::Ascii85 for better searchability)
Chris

Reply via email to