we have one servlet program which is using the HTML code inside the servlet program i.e
HTML.append("<html>");
HTML.append(lnTag);
HTML.append("<head>");
HTML.append(lnTag);
HTML.append("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
String titalsLang = resourceBundle.getString("eayslip.tan.title");
HTML.append("<title>"+resourceBundle.getString("eayslip.tan.title")+"</title>");</i>
// and list of codes...
out.print(HTML);
response.setContentType("text/html; charset=UTF-8");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
I am getting the Chinese character from the property file while debugging into the code. But once the response is sent to the page, in the html page we are getting question mark ?????.
We have no problems with English characters and they are displaying correctly.