在我的 Android 应用程序中,我从 PHP url 获取 JSON 响应字符串。从我得到一些酒店名称的回复中apostrophe
,我得到了'
字符而不是apostrophe
。如何在android中解析带有特殊字符的酒店?I can see the apostrophe in the browser but could not see in android logcat.
我试过了jresponse = URLEncoder.encode(jresponse,"UTF-8");
,但我找不到apostrophe
酒店名称。
这是响应中的酒店名称之一。
I see the following in browser.
{"id":12747,
"name":"Oscar's",
....
}
But in the logcat:
id 12747
name Oscar's