Page 1 of 1

Retrieving text with accents

Posted: Wed Jan 16, 2019 7:48 pm
by simon.schvartzman
Hi, I'm using Google Places API in my App and the JSON answer includes accents (I live in a portuguese speaking country), the problem I'm facing is that the response gets unformatted when "enters" the LC environment...

To better explain myself this is the response when the request is submitted from the browser:
browser.jpg
And this is when I submit using put URL in LC and show the result in a List Field.
lc.jpg
How should I deal with it in order to get the same result in LC?

Help would be appreciated.

Re: Retrieving text with accents

Posted: Wed Jan 16, 2019 8:01 pm
by matthiasr
You could try to use textdecode() function to convert the complete response.

It tried just with only S√£o Paulo.

Put textdecode("S√£o Paulo","UTF-8") returns the correct spelling.

Matthias

Re: Retrieving text with accents

Posted: Thu Jan 17, 2019 2:19 am
by simon.schvartzman
Matthias, thank you very much for your input, it worked fine.

Regards