Hey Jeremy-
Welcome to the JavaRanch! We've got the perflect place for servlet-y questions like this.
So I'm going to move this to the Servlets forum. Please continue the conversation there.
As for your question -->
Check out the
URLDecoder class. I think it will do the kind of thing you need. It's happening so that the character doesn't get corrupted.
The standard format for URL's with parameters is like this:
blah.com/somepage.jsp?param1=value1¶m2=value2 But what if the value you were sending actually contained a "&" like "Bonnie & Clyde" That could get pretty messy, your request would look like this:
blah.com/somepage.jsp?hero=Davey+Crocket&villain=Bonnie+&+Clyde How would the application server know that the "&" inside "Bonnie+&+Clyde" was actually part of the value and not a marker to deliniate the next set of name / value pairs?? The solution is to encode all the param names and values with those funky %XX codes so no one gets confused. Make Sense?