Content type: The charset for the MIME body response can be specified explicitly using the setContentType(
String) method. Explicit specifications take precedence over implicit specifications. If no charset is specified, ISO-8859-1 will be used. The setContentType method MUST be called BEFORE getWriter and BEFORE committing the response for the character encoding to be used.
There are 2 ways to define content type:
ServletResponse.setContentType(String);
HttpServletResponse.setHeader("Content-Type", "text/html");
Reference [ September 07, 2006: Message edited by: Saif Uddin ]