UTF-8 Encoding not working only in Live environment

Hi All,

Sharing setup details first

Pega Version - 8.x

Database - Oracle

App Server - Tomcat

VM OS - Linux

Issue faced in - Prod Env only

Working fine - Non Prod Envs

We need to call a REST API and one of parameters must be encoded if it contains special characters.

Its working fine in all the non prod environments. We want to know what settings/Env variables/JVM arguments must be in place to make this work.

Thanks in advance!!!

Kind Regards,

Vishal

@VishalB8

SR raised with Pega support team

INC-223479

@VishalB8 I have verified the support ticket and can see that it was closed a month ago.

The support team suggested that you check startup, setclasspath, service (bat or sh) files present in tomcat bin folder and see if there is any parameter with encode has set. In proconfig please see if the below value are there:
-Dfile.encoding=UTF-8.

When the values are to be encoded we have to select “Mapping Type” as “x-www-form-urlencoded” and as a best practice values are to be passed by using parameters.

The ticket was resolved with the suggestion of adding the UTF-8 encoding as part of the JVM arguments and you handled the issue using urlencoding function.

As the issue was resolved by selecting url-encoded for message type in rest post method I will proceed to mark this as the accepted solution.