I access the Yummly database for recipes in my Android app using the html query:
http://api.yummly.com/v1/api/recipes?_app_id=MY-APP-ID_app_key=MY-APP-KEY&q=KEYWORD
Even though their documentation states that the GET requests are returned in the UTF-8 format, I find some strange characters in the code, like: Pots de Creme a l’Orange
.
The problem is not only limited to my Android application, but the same is shown in the Chrome browser. Funnily enough, when I tried opening it in Internet Explorer, it appeared to be ok: Pots de Creme a l’Orange
, but there were other things like crème fraîche
, which in Chrome appears sometimes as Crème Fraîche
and sometimes correctly as Crème Fraîche
.
What is the difference between the browsers that makes them interpret the response in different ways? And, more importantly, what can be done in Android/Java to eliminate this issue? Do you have any ideas?
In Android I use HttpGet to fetch the data from server and then I pass it to a JSONObject.