`

J2EE Default Encoding Specification (Since WebLogic Serv

阅读更多

J2EE Default Encoding Specification (Since WebLogic Server 7.0)

With weblogic-application.xml, it has become possible to specify the default character encoding for requests and responses for the entire J2EE enterprise application. (CR065921)

By setting either of the following parameters for weblogic-application.xml, the default encoding used for requests and responses can be set.

  • webapp.encoding.usevmdefault = true | false
  • webapp.encoding.default = java encoding name

Note: The value specified with webapp.encoding.default is the Java encoding name, not the IANA character set name.

If the above two options are both set, webapp.encoding.usevmdefault is used.

These response and request values can be set individually. Also, these options are only applied to response and request, and are not applied to the encoding read during JSP compilation. For details on how to set response and request individually, as well as JSP file encoding, see programming .

Code List 1-1: Usage Example of webapp.encoding.usevmdefault (weblogic-application.xml)


<application-param>

  <description>webapp.usevmdefault</description>

  <param-name>webapp.encoding.usevmdefault</param-name>

  <param-value>true</param-value>

</application-param>

Alternately

Code List 1-4: Usage Example of weblogic_application.xml's webapp.encoding.default


<application-param>

  <description>default encoding</description>

  <param-name>webapp.encoding.default</param-name>

  <param-value>SJIS</param-value>

</application-param>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics