AnsweredAssumed Answered

Issue with encoded data

Question asked by Sonalee on Dec 28, 2017
Latest reply on Jan 11, 2018 by Mark_HE

While converting from JSON to XML my encoded data is getting converted to Junk values 

 

Json 

{"title": "\u00c5\u009btest\u00c4\u0085test"} becomes

<title>Å&#155;testÄ&#133;test</title>

 

As a workaround,i am using regular expression to replace all "\u00" with "unicode" before JSON to XML conversion.And again after XML ->JSON conversion,i am using regular expression to replace "unicode" with "\u00"

 

This gives correct data when i check in audits 

{"title": "\u00c5\u009btest\u00c4\u0085test"}

 

but in browser or postman ,the response i see is 

{"title": "Å\u009btestÄ\u0085test"}

 

looks like API Gateway is converting "\u00c" series to junk characters.

Please let me know how to resolve this.

 

Regards,

Sonalee Shyam 

Outcomes