Apply JSON Transformation assertion does not correctly incorporate the euro sign (€) in XML input into the JSON output.

book

Article ID: 193833

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

The Apply JSON Transformation assertion does not correctly incorporate the euro sign (€) in XML input into the JSON output.
In the debugger it can be seen that the euro sign is displayed correctly in the request (so it arrives correctly at the gateway), but immediately after the conversion to JSON (response) it is lost and there are meaningless characters.


Environment

Release : 9.4

Component : API GATEWAY

Resolution

The response in postman is is showing the  euro sign (€)   after the JSON transformation 

{
"price": "€5.95",
"name": "Belgian Waffles",
"description": "Two of our famous Belgian Waffles with plenty of real maple syrup",
"calories": "650"
},

In the gateway debugger the response is shown as "u20ac" 

"u20ac" is the UTF-8 value for the euro sign, only the debugger does not show it as euro sign (€)