Showing posts with label urlencode. Show all posts
Showing posts with label urlencode. Show all posts

Tuesday, June 5, 2012

PHP - urlencode vs rawurlencode?


If i want to create an url using a variable i have two choices to encode the string. urlencode() and rawurlencode() .

Wednesday, May 30, 2012

Thursday, April 19, 2012

JavaScript URL encode


I am encoding a string that will be passed in a url (get). But, if I use escape, encodeURI or encodeURIcomponent, & will be replaced with %26amp%3B and I want it to be replaced with just %26 ... What am I doing wrong?