Setting up the EGL Java runtime encoding for web applications

About this task

If your application converts data from a JSF page or a service call to the CHAR, MBCHAR, or DBCHAR variables in the EGL generated Java™, you might have the following issues: To resolve these issues, you can set the property hpt.override.char.encoding in the configuration of the WebSphere® Application Server JVM. hpt.override.char.encoding is an EGL definition used to override the default encoding of the application servers when the conversion is done by EGL.

Procedure

  1. Open the WebSphere Application Server administrative console.
  2. Expand Servers > Server Types, and select WebSphere Application Servers, then click your server.
  3. Under Server infrastructure, expand Java and process management, click Process definition. The Process definition page is displayed.
  4. On the Process definition page, click Java Virtual Machine to go to the Java Virtual Machine page.
  5. On the Java Virtual Machine page, click the Custom properties page to go to the Custom properties page.
  6. Click New to add a property.
  7. Under General Properties, enter hpt.override.char.encoding and set the value to the encoding (for example, ISO-8859-15).
  8. Click OK and save the changes.

Example

The following are two scenarios that might need specific encoding for data conversion:
Note: If you have multiple web applications that use different encoding, you need to deploy them to different server instances because each instance has its own encoding.

Feedback