Steve's random ramblings and technical notes

Monday, October 25, 2004

URL Encoder and Decoder

URL Decoder
Sometimes we get emails, even legitimate ones, that have URLs encoded with "%49" entities. In order to allow certain "bad" characters into a URL in a meaningful way, it is possible to encode them. For example, forward slashes, question marks, spaces, ampersands, etc. all have special meaning in a URL and can break it. But if GET data contains one of these characters, you need to be able to push it through a URL. In comes URL encoding and decoding. But you don't have to stop there. You can encode everything in the URL, and your browser will still manage to figure it out.
URL Encoder
When you construct a URL, usually with GET data, you must escape certain characters if present so the URL does not break and the server can parse it correctly. This page encodes URLs in case you need to use one without it being generated by a web server.

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?