uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

2.6.4 Specifiable character encoding

The characters that you can specify as default character encoding is the character encoding supported in JavaVM. For details on the character encoding supported in JavaVM, see the description related to the supported encoding in the JDK documentation.

The strings you can specify are the character encoding mentioned in the canonical name for java.nio API and the canonical name for java.lang API and their optional names.

Note
If the OS of the development and operation environments of the J2EE applications are different and when the J2EE applications are exported and imported using EAR files containing the runtime information, specify a character encoding that is supported in both the OS of the development environment and the OS of the operation environment. If the character encoding set up in the development environment is not supported in the operation environment, an exception might occur when the application starts.

Furthermore, whether the specified default character encoding is supported in JavaVM or not will be validated. The timing for validation depends on the method used for setting up the default character encoding. The following table describes the validation timing for character encoding:

Table 2-19 Validation timing for character encoding

Validation timing Operations when unsupported character encoding is specified
When J2EE server starts A warning message will be output and the J2EE server starting process continues. The set up character encoding is ignored.
When the server management command (cjsetappprop) is executed An error message will be output and the processing of the server management command will be cancelled.
When the cjjspc command is executed# An error message will be output and the processing of the command will terminate.

#
Validation timing when the default character encoding is set up during the JSP pre-compilation with the cjjspc command. For details on the application of default character encoding during the JSP pre-compilation, see 2.6.3 Application of character encoding during JSP pre-compilation.