i18n_template.jsp
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<% String value1 = request.getParameter("field1");if (value1 != null) {
-- The conversion is needed for HTTP request parameter value */
String converted1 = new String(value1.getBytes("ISO8859_1"), "UTF8");
/* The following will show the text correctly (e.g. in Japanese) */
out.println( converted1 ); }
%>
<form action="sample1.jsp" method="post">
<input type="text" name="field1" value="">
<input type="submit">
</form>
</body>
</html>