Hello,
if I encode a string with an ampersand in it I got an serverside error
(PHP ZEND Framework) because the json string isn't complete:
In JS the encoding looks like:
var ajaxParameter = 'param={"val":'+$('val').getValue().toJSON() +'}';
If $('val') has the value of e.g. 'test&test'
I got this results:
{"val":"test
in PHP Zendframework
instead of :
{"val":"test&test"}
My PHP code looks like this:
$json = $this->_getParam('param',"");
$validationObjekt= Zend_Json_Decoder::decode($json,
Zend_Json::TYPE_ARRAY);
hope you can help me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---