prajapatisagar Sagar wrote:I am doing System.out.println() in eclipse IDE
Like Tim said, don't do that. You don't know what encoding it's using or even whether it's writing to a console which supports Unicode. If you want to
test data in your code, write it to a file using a Writer with UTF-8 as encoding, and then use an editor which supports both UTF-8 and a Nepali font to look at that file.
But your JSP: it's clear that as the data goes from the client machine to your server it's being corrupted. That's probably because you didn't force that communication to be in UTF-8. (The
servlet spec defaults to ISO-8859-1 for that encoding, which was a blunder by the people who wrote the spec but now we're stuck with that.)
Actually in your case it's better to just send an SMS to test the data, since that appears to work correctly for correctly-encoded characters like your static variable.