I have been trying to get a JSON response form API call which return a localised strings. Works well in Postman with same setup as http calls. but when make an API call from application it returns weird string - please check below.
I tried passing header for supporting language but does not work
JSON response in Postman - "text": "Número OMI-IMO",
JSON response through application - "text":"Número OMI-IMO"
http.Response response = await http.get(
login,
headers: {'Consumer-Key': consumerKey, 'Accept-Language': '*'},
);
I have also tried setting my device default language to respective localized language in this case Spanish, local strings used int he application works fine.
Tried binding the string "text": "Número OMI-IMO", from JSON file works well.
The response re not working only with API response strings, its same with other language like Frensh, Portuguese.
Been trying different solution but nothing work this problem exist on both Android and iOS.
