Now the problem is if my SecurityName is 'A & B Corporation', in the pop-up it's displayed as just 'A' all the string after '&' is chipped off.
Could some one tell how this string should be handled before making an Ajax call...
String can have any special character like '&', '@', ':', '%', '-', '_','.' etc.,
UTF-8 is primarily meant for globalization. To make your jsp page render non-English characters. It doesn't work well for special characters like #,@ etc. The only way , as far as I know, is to encode at origin and decode where it is received. I have posted a similar question in Servlets forum.