I am making below AJAX call.\[code\]var url = context + "/Ajax/ajaxGuestService.do?dispatch="+ service;url += "&firstName=" + encodeURIComponent(firstName)+"";url +="&midName="+encodeURIComponent(midName);url +="&lastName="+encodeURIComponent(lastName);url +="&addrLine1="+encodeURIComponent(addrLine1);xmlhttp=null;if (window.XMLHttpRequest){ // code for all new browsers xmlhttp=new XMLHttpRequest();}else if (window.ActiveXObject){ // code for IE5 and IE6 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}if (xmlhttp!=null){ xmlhttp.onreadystatechange=getTranslationResponseBack; xmlhttp.open("GET",url,false); xmlhttp.send(null);}\[/code\]in my Ajaxservlet.java\[code\]request.getParameter("lastName"));\[/code\]I am getting \[code\]'\[/code\] for \[code\]'\[/code\].