Request fails because of an encoding problem

If the WebSphere® Application Server Version 7.0 is running on a machine where either the default encoding is not UTF-8 or the default encoding does not map to UTF-8 (for example, cp1252), the Web Gateway cannot complete the request.

About this task

The request fails with the following error:
BFGWI0018E:(WEBGATEWAY) The request could not be completed due to an internal web  
application server error. Caused by: Invalid byte 2 of 4-byte UTF-8 sequence. 

To resolve this problem, set the Java file.encoding system property on the JVM by completing the following steps:

Procedure

  1. Open the WebSphere Application Server administration console and navigate to: Application servers > server name where the Web Gateway is located > Process definition > Java Virtual Machine.
  2. Add the following argument to the Generic JVM arguments:
    -Dfile.encoding=UTF8
  3. Shut down and restart WebSphere Application Server to refresh the configuration.

Task Task

Feedback

Timestamp icon Last updated: Tuesday, 30 January 2018
http://www.ibm.com/support/knowledgecenter/SSEP7X_7.0.4/com.ibm.wmqfte.doc/web_trouble_utf8.htm