PQ51629: USING SETLOCALE() DOES NOT SET THE CHARSET.


APAR

APAR status
Closed as program error.

Error description
According to the Servlet 2.2 spec and IBM's WAS documentation,
using setLocale() should change the charset that is used.
However, the HTTP headers never reflect any change to the
charset when using setLocale(), although the language type is
changed.
Local fix
Problem summary
****************************************************************
* USERS AFFECTED: All WebSphere Application Server users who   *
*                 pass setLocale() a Locale with a language    *
*                 that cannot be encoded using ISO-8859-1      *
*                 (Latin 1).                                   *
****************************************************************
* PROBLEM DESCRIPTION: Set locale did not add a "charset"      *
*                      field to the "Content-Type" HTTP        *
*                      response header.                        *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Invoking setLocale() did change the character encoding used
to generate the response to the client (if the language of
the Locale was one the 10 or so supported ones), but it
did not add the correct "charset" field to the
Content-Type header of the response.  The result was the
server would respond using an encoding without telling
the client what that encoding was.
Problem conclusion
Added support for additional languages.  Improved detection
of client preferred language/encoding.  Corrected the problem
of setLocale() not adding charset field.  Changed the method
getWriter() to throw an UnsupportedEncodingException as
required by the servlet spec.
Temporary fix
pq51629_test.jar
Comments
Czech is not one of the languages directly supported
by WebSphere.  It's always better to set the character encoding
directly via the setContentType method.  The supported
languages are:  Brazilian Portuguese, English, French,
German, Italian,  Japanese, Korean, Simplified Chinese,
Spanish, Traditional Chinese.  The customer should
use the WS InfoCenter for guidance.
APAR information
APAR numberPQ51629
Reported component nameWAS ADVANCED AI
Reported component ID5648C8400
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2001-08-20
Closed date2001-11-30
Last modified date2001-12-17

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:APAR is sysrouted FROM one or more of the following:


Modules/Macros
ENGINE
APAR is sysrouted TO one or more of the following:Modules/Macros

Fix information
Fixed component nameWAS ADVANCED AI
Fixed component ID5648C8400

Applicable component levels
R350 PSYUP











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
Software version: 350
Reference #: PQ51629
IBM Group: Software Group
Modified date: 2001-12-17