114
Views
7
Comments
Solved
REST Consumed - Data Corrupted
Question

I call an external web service that return message "Curr coll status # 1" .. not equal1, but Outsystems REST consume it as:

 ""value"" : [ ""Curr coll status â?  1"",

In the way to Outsystems, there is an API gateway, and it is recorded that the message is "Curr coll status # 1". UNfortunately, when i trace in the on After response the message is wrong.

thank you


2020-06-08 02-42-28
Wasabi
Solution

Hi Sirs,

Thank you.. i found link with same case and with answee in here https://www.outsystems.com/forums/discussion/16634/rest-encoding-problem/

2023-07-28 17-00-32
Marco Arede
 
MVP

Hi Box,

Is this an observation or a question to the community? 

2020-06-08 02-42-28
Wasabi

hi mARCO,

It is a question, how come the respond is different between the API gateway and when i debug in Outsystems?

regards


2020-06-08 02-42-28
Wasabi

It is weird, when i try in the TEST REST, the result is correct, but if i debug or run it, the respond is that strange characters... something that it is not a unicode? Or do we need to give request data with that unicode so Outsystems can generate UTF code, instead of text?

regards 

2023-07-28 17-00-32
Marco Arede
 
MVP

Hi Box,

What is your code context of execution, and what is the HTML encoding type the REST API service is using?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Box,

First, the Platform should fully support Unicode everwhere, so what you're seeing is a bit unexpected. However, I can think of several ways this could go wrong, the very first being that the external REST service sends a wrong character encoding, i.e. it sends Unicode in UTF-8 format, but doesn't send a charset or a wrong charset in the header. Did you enable debugging of the API? If so, if you download the HTTP trace from Service Center and open it in a UTF-8-capable editor, what do you see then?

2020-06-08 02-42-28
Wasabi
Solution

Hi Sirs,

Thank you.. i found link with same case and with answee in here https://www.outsystems.com/forums/discussion/16634/rest-encoding-problem/

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Thanks for the feedback!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.