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 fixProblem 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 number | PQ51629 | Reported component name | WAS ADVANCED AI | Reported component ID | 5648C8400 | Reported release | 350 | Status | CLOSED PER | PE | NoPE | HIPER | NoHIPER | Submitted date | 2001-08-20 | Closed date | 2001-11-30 | Last modified date | 2001-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 APAR is sysrouted TO one or more of the following:Modules/Macros
|
Fix information |
Fixed component name | WAS ADVANCED AI | Fixed component ID | 5648C8400 |
Applicable component levels | R350 PSY | UP |
|