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:
And this is when I submit using put URL in LC and show the result in a List Field.
How should I deal with it in order to get the same result in LC?
Help would be appreciated.
Retrieving text with accents
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 638
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Retrieving text with accents
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- VIP Livecode Opensource Backer
- Posts: 190
- Joined: Sat Apr 08, 2006 7:55 am
- Location: Lübbecke, Germany
- Contact:
Re: Retrieving text with accents
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
It tried just with only S√£o Paulo.
Put textdecode("S√£o Paulo","UTF-8") returns the correct spelling.
Matthias
-
- Posts: 638
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: Retrieving text with accents
Matthias, thank you very much for your input, it worked fine.
Regards
Regards
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question