Hi Samir, On Thu, Dec 18, 2008 at 10:52 AM, Samir van de Sand <[email protected]> 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, 2008 at 3:44 PM, Nicolas Perriault <[email protected]> wrote: > Base64 is often used because it's charset safe (only ascii characters > are used to represent the encoded content) Imagine a cookie that contains special characters like €, ö, é etc. These characters are not ASCII characters, but if you encode them with base64, they will be encoded using ASCII characters (gA==, 9g== and 6Q== in this case). Thus you receive a valid ASCII string that can safely be stored in the cookie. Bernhard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
