hi guys ,
I have a requirement , I have created dynamically in table in JSP with common name as
for(i=0;i<count;i++){
var name="EmailCookie"+i;
var getData =readCookieSearch(name); // reading the values from COokie
if(getData !=null){
var element = document.createElement("input");
element.setAttribute("type", "hidden");
element.setAttribute("value",getData);
element.setAttribute("name", "EmailData");
var foo = document.getElementById("fooBar");
//Append the element in page (in span).
foo.appendChild(element);
}
now I am retriviing this EmailData value from servlet class
as request.getParametervalues("EmailData");
what means When I displaying these values on sysout then instead of Apstrpes(') ,hypens( - ) these are getting as ? in the place of hiphen and Apstrpoes
For Example
on JSP page we have Let’s Talk Synergy – group disability insurance top up
in Java class we have Let?s Talk Synergy ? group disability insurance top up