Chris Dolan wrote: >> 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 >
I concur with the latter (String::Ascii85) to draw attention to the fact that it does not implement the RFC 1924 version. Maybe also mention that difference, and Math::Base85, in the docs. -- Darian Anthony Patrick <[EMAIL PROTECTED]> ================================================= 88FC 044D 5144 BD3A DAF8 FD9F 8C9E DF14 9AD3 4117 ================================================= * Signed and encrypted communications preferred.