Subject: Request/response character encoding
Author: WebSpider
In response to: Globalize JSP web application by charset encoding
Posted on: 11/04/2009 02:11:46 AM
<%@ page contentType="text/html; charset=UTF-8" %>
JSP is dynamically generated at runtime and transfered to client via a stream. The parameter defined in contentType is used to determine the response charset for this stream encoding.
This parameter is also the one used in the client's broswer for charset encoding.
>
> On 11/04/2009 01:54:05 AM
WebSpider wrote:
In developing a global web application, you are likely to have to consider character encoding. The first thing you have to keep in mind is that there are two character encoding's that need to be addressed for JSP:
Request/response character encoding: The character encoding of the parameters sent, for example, from a form and character encoding of the web pages generated by JSP.
JSP page encoding: The character encoding of the JSP itself.
References: