[symfony-users] Re: What is Base64 encoding?

2008-12-18 Thread Bernhard Schussek
Hi Samir, On Thu, Dec 18, 2008 at 10:52 AM, Samir van de Sand samir@googlemail.com wrote: Ok, thank you for your reply. However, I still don't understand why I should save cookie contents with base64 encoding? They aren't binary data? Nicolas already gave you the answer: On Wed, Dec 17,

[symfony-users] Re: What is Base64 encoding?

2008-12-18 Thread Samir van de Sand
Ok, I know understood that non ASCII strings are treated as binary data. Thank you very much everybody ;) On Thu, Dec 18, 2008 at 11:54 AM, Bernhard Schussek bschus...@gmail.comwrote: Hi Samir, On Thu, Dec 18, 2008 at 10:52 AM, Samir van de Sand samir@googlemail.com wrote: Ok, thank

[symfony-users] Re: What is Base64 encoding?

2008-12-17 Thread Ian P. Christian
2008/12/17 Samir van de Sand samir@googlemail.com: Hello everybody, I recently noticed a function called base64_encode. Eg. the Symfony cookbook tutorial about cookies recommends encoding cookie contents with base64: http://www.symfony-project.org/cookbook/1_2/en/cookie However I still

[symfony-users] Re: What is Base64 encoding?

2008-12-17 Thread Nicolas Perriault
On Wed, Dec 17, 2008 at 3:04 PM, Samir van de Sand samir@googlemail.com wrote: The cookie only contains a string. How's that binary data? Base64 is often used because it's charset safe (only ascii characters are used to represent the encoded content) ++ -- Nicolas Perriault

[symfony-users] Re: What is Base64 encoding?

2008-12-17 Thread Samir van de Sand
Yeah, I had read the Wikipedia article. However it's still not completely clear to me. Wikipedia from what I understood says, that base64 encoding is needed in order to prevent data corruption of binary data during the transfer over the internet. 1. The cookie only contains a string. How's that

[symfony-users] Re: What is Base64 encoding?

2008-12-17 Thread Nicolas Perriault
On Wed, Dec 17, 2008 at 2:21 PM, Samir van de Sand samir@googlemail.com wrote: However I still haven't understood what base64 is and why I should use it. Is there anybody who could explain this? http://letmegooglethatforyou.com/?q=base64 -- Nicolas Perriault http://prendreuncafe.com -

[symfony-users] Re: What is Base64 encoding?

2008-12-17 Thread Eno
On Dec 17, 9:04 am, Samir van de Sand samir@googlemail.com wrote: 2. Does this mean everytime I transfer (binary) data to the client I need to encode it with base64? Most email software will do this when encoding attachments for sending through SMTP, otherwise your binary may arrive