4

私の Android アプリケーションでは、PHP URL から JSON 応答文字列を取得します。応答から、 のホテル名をいくつか取得します。代わりに文字apostropheを取得します。Androidで特殊文字を使用してホテルを解析するにはどうすればよいですか?&#039apostropheI can see the apostrophe in the browser but could not see in android logcat.

試してみましたが、ホテル名をjresponse = URLEncoder.encode(jresponse,"UTF-8");取得できませんでした。apostrophe

これは、応答のホテル名の 1 つです。

 I see the following in browser.

    {"id":12747,
     "name":"Oscar's",
     ....
    }
But in the logcat:

     id 12747
     name Oscar's
4

3 に答える 3

0

Htmlクラスを試すことができます。例:- jresponse = Html.fromHtml(jresponse);

于 2016-01-07T14:39:59.680 に答える