Apply JSON transformation issue
search cancel

Apply JSON transformation issue

book

Article ID: 280859

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

After the JSON > XML transformation with the 'Apply JSON Transformation' assertion, the country 'TÜRKIYE' is transformed into 'T?RKIYE'

Environment

Container API gateway 10.1, 11.x

Resolution

The container gateway provides the environment variable "EXTRA_JAVA_ARGS", this variable defines any JVM properties to be added.

The default charset of the JVM is determined at the JVM startup and depends on the charset and locale of the underlying operating system. This can be overridden by setting the system property 'file.encoding' i.e "-Dfile.encoding=UTF8".

When this flag is added '-Dfile.encoding=UTF8'  before starting the container gateway, the issue no longer occurs.