On Sat, Feb 5, 2011 at 6:37 PM, Joshua Cranmer <pidgeo...@verizon.net>wrote:
> On 02/05/2011 08:29 PM, Jonas Sicking wrote: > >> So my first question is, can someone give examples of sources of >> base64 data which contains whitespace? >> > The best guess I have is base64-encoding MIME parts, which would be > hardwrapped every 70-80 characters or so. RFC 3548 "The Base16, Base32, and Base64 Data Encodings" Section 2.1 discusses line feeds in encoded data, calling out the MIME line length limit. For example, Perl's MIME::Base64 has an encode_base64() API that by default inserts newlines after 76 characters. (An optional argument allows this behavior to be overridden.) Section 2.3 discusses "Interpretation of non-alphabet characters in encoded data" specifically in base64 (etc) encoded data. -- Josh