In my Android application I get JSON response string from a PHP url. from the response I get some hotel names with apostrophe
, I get '
character instead of apostrophe
. How can I parse the hotel with special characters in android? I can see the apostrophe in the browser but could not see in android logcat.
I have tried jresponse = URLEncoder.encode(jresponse,"UTF-8");
but I could not get apostrophe
for hotel name.
This is the one of the hotel name in the response.
I see the following in browser.
{"id":12747,
"name":"Oscar's",
....
}
But in the logcat:
id 12747
name Oscar's