You need to βURL encodeβ parameters to avoid this problem. The format of the URL query string is: ...?<name>=<value>&<name>=<value>&<etc> All <name> and <value> should be encoded in the URL, which basically means converting all characters, which may be misinterpreted (e.g. &) into% -escaped values. See this page for more information: http://www.w3schools.com/TAGS/ref_urlencode.asp
If you create the URL of a Java problem, you use this method: String str = URLEncoder.encode(input, "UTF-8");
By creating the URL elsewhere (some patterns or JS or raw markup), you need to fix the problem in the source.
Ben zotto
source share