PQ72756: UTF-8 text, such as Japanese, retrieved from a JSP input field or passed as a jsp:param gets corrupted.

 Fixes are available

PQ72756, 5.0/5.0.1: Corrupt DBCS text passed in JSPs.
5.0.2: WebSphere Application Server Version 5.0 Fix Pack 2 (Version 5.0.2)



APAR status
Closed as program error.

Error description
The original PMR was reported as a problem with Japanese
characters as is used in the following problem description.

1.  The application uses text areas and text input fields in a
form in a JSP to capture input.  The JSP uses the JSP standard
actions jsp:useBean and jsp:setProperty to store and retrieve
the input from the java bean.
The JSP page encoding is set using the following page directive.
<%@ page language="java" contentType="text/html; charset=UTF-8"
%>
The Japanese text input is returned as garbled text.
Setting the request encoding in the JSP ,
<% request.setCharacterEncoding("UTF-8"); %>,
or setting the WebSphere System Property
client.encoding.override=UTF-8 resolves this problem.

2.  The application also uses the jsp:include and jsp:param
standard actions where the value of the param can be a Japanese
text string.  The JSP page encoding is set using the following
page directive.
<%@ page language="java" contentType="text/html; charset=UTF-8"
%>
If the request encoding in the JSP is set,
<% request.setCharacterEncoding("UTF-8"); %>, or the WebSphere
System Property client.encoding.override=UTF-8 is set, a
Local fix
Japanese t xt string set as the value of the jsp:param becomes
?? when retrieved using request.getParameter.  If
request.setCharacterEncoding("UTF-8")
is not set or the System Property for UTF-8 override is not set,
request.getParameter returns the text correctly.

The test case uses request.getParameter to retrieve the string
set by jsp:param.  The application uses this as well as
jsp:setProperty property=* and then retrieves the property from
a bean.  This has the same problem.
LOCAL FIX:&#65437;
none
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server Developers      *
*                 using DBCS characters in the JSP input field *
*                 and request parameters.                      *
****************************************************************
* PROBLEM DESCRIPTION: DBCS character retrieved from input     *
*                      field on JSP garbled and DBCS text      *
*                      passed as request parameter in JSP      *
*                      garbled                                 *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
If a JSP page encoding is set using the following
 <%@ page language="java" contentType="text/html;
   charset=UTF-8" %>,  the DBCS text input is returned as
garbled text if the JSP uses the JSP standard actions
jsp:useBean and jsp:setProperty to store and retrieve the input
from the java bean. Also a DBCS text string set as the value of
the jsp:param becomes ?? when retrieved using
request.getParameter.
Problem conclusion
To prevent garbled DBCS text, during internal input parse on
QueryString, the jsp dipatcher will not parse the input
specified in the user encoding format.
Temporary fix
ZE FIX ERROR 
PQ74501 02/05/22
The PQ72756_test fix is up on 
PQ99999, please test it
Comments
APAR information
APAR number PQ72756
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 00W
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2003-04-02
Closed date 2003-04-16
Last modified date 2003-05-22

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
ENGINE          

Publications Referenced

Fix information

Applicable component levels
R003 PSY    UP
R00A PSY    UP
R00H PSY    UP
R00I PSY    UP
R00S PSY    UP
R00W PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00W
Software edition:
Reference #: PQ72756
IBM Group: Software Group
Modified date: May 22, 2003