I tested the JS escape Method, in JavaScript it works correctly and no errors, but when I read $this->data in my controller fields that where 'escaped' appeared empty. I did some research: escape Method kind of fails with non-ASCII characters, however there are two alternatives encodeURIComponent and encodeURI, both JavaScript native too.
In my case, seems to be working fine with encodeURIComponent. Here is some reference: http://www.w3.org/TR/uri-clarification/ http://xkr.us/articles/javascript/encode-compare/ Regards Thanks a lot. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
