I've a Zend Framework URI like /controller/action/var1/value1/var2/value2 .
Value2 has a space character in it. How should I encode it in PHP? When I use urlencode with value2, this converts space into '+' instead of '%20f'. Is that ok?
This value2 is also added to a href location by javascript on client side. I'm using escape function there but when I click link I neither see '+' nor '%20f' in firefox address bar. Though when I see it in firebug 'net' tab, I see %20f.
Which functions should I use in PHP and javascript?