%40 is the URL @ encoded version. This conversion occurs only in the URL. The server will still look like @ , and if necessary, you can even use JavaScript to decode it:
decodeURIComponent('%40'); // '@' // or, to encode it back: encodeURIComponent('@'); // '%40'
Here is an example URL that will be treated as expected on the server side:
http://mathiasbynens.be/demo/get?x=%40
If you go to the page , you will see that it prints @ , not %40 .
Here is an example URL that will be treated as expected on the client side using decodeURIComponent :
http://mothereff.in/byte-counter
If you go to the page , you will see that the content of the text field is set to @ , not %40 .
source share