[Bug 54140] Re: base64_encode produces invalidly encoded string

2006-07-26 Thread nodata
Perl and Python's base64 functions both follow the "put a new line after the 76th character" convention. It's unintuitive that php doesn't. Oh well. -- base64_encode produces invalidly encoded string https://launchpad.net/bugs/54140 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https

[Bug 54140] Re: [Bug 54140] Re: base64_encode produces invalidly encoded string

2006-07-26 Thread Dennis Kaarsemaker
But that's for MIME data -- base64 encoding can be used for other purposes too. PHP makes that possible by not requiring splits, but making them possible very easy. -- base64_encode produces invalidly encoded string https://launchpad.net/bugs/54140 -- ubuntu-bugs mailing list ubuntu-bugs@lists.u

[Bug 54140] Re: base64_encode produces invalidly encoded string

2006-07-26 Thread nodata
True, but is it wrong? RFC 2045 seems to be the closest thing to a specification, and it mentions: "The 76 character limit does not count the trailing CRLF, but counts all other characters, including any equal signs." -- base64_encode produces invalidly encoded string https://launchpad.net/bugs/

[Bug 54140] Re: [Bug 54140] Re: base64_encode produces invalidly encoded string

2006-07-26 Thread Dennis Kaarsemaker
wikipedia isn't a specification :) -- base64_encode produces invalidly encoded string https://launchpad.net/bugs/54140 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 54140] Re: base64_encode produces invalidly encoded string

2006-07-26 Thread nodata
Are you sure? "newlines are inserted in the encoded data every 76 characters, the actual length of the encoded data is approximately 135.1% of the original. [..] For example[..]: TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhb