I have a javascript which sends some specific information to a PHP api . Before to send it performs encodeURI . How can I "decode" it in PHP ? I understand that urldecode/urlencode is different that javascript encode/decodeURI so what can I use ?
Use encodeURIComponent
in Javascript: http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp and urldecode
in PHP: http://php.net/manual/en/function.urldecode.php