uCosminexus Application Server, Web Container Functionality Guide
Note the followings regarding the application of default character encoding:
The default character encoding settings for response are not enabled in the following cases:
Note that when the HTTP response compression filter is used, the default character encoding settings for response are not enabled.
When the character encoding is not specified in the Servlet specifications, the default character encoding specified for each J2EE server or Web application is applied to the following Servlet API methods:
However, when the character encoding is changed using the setCharacterEncoding method, the same character encoding will be acquired.
For the response, when the reset method of javax.servlet.ServletResponse is used to initialize the response data, the character encoding set in Application Server can be acquired with the getCharacterEncoding method.
For details on the character encoding setting method defined in the Servlet specifications, see 2.6.5 Implementation of default character encoding (For Servlet specifications).
When the Web container automatically generates an XML declaration in the JSP document and XML tag file, the default character encoding applied to the response body encoding is output in the character encoding declaration in the XML declaration.
The character encoding settings for JSP files is applied during the compilation of the JSP file. Therefore, if the character encoding settings are added or changed when the JSP file is already compiled, the added or changed character encoding will not be applied to the JSP file. To apply the settings, re-compile the JSP file.
For the Web applications that executed JSP pre-compilation with version 07-00, when you set up the default character encoding for response, re-execute the JSP pre-compilation functionality.
The followings are the description for each of the units to set up the default character encoding:
For details on the default character encoding settings during the JSP pre-compilation, see 2.6.3 Application of character encoding during JSP pre-compilation.
The character encoding for default error pages is specified in UTF-8, and therefore the default encoding is not applied.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.