透?php?直?android???字串??

來源:互聯網
上載者:User
我目前是透?php作?媒介,?取?端主?的mySQL?料
?且再?值回??android做?示
在本?端的php做??都很正常
也能正?抓到值?回?
但是?php改成放於?端的php?
????:Value of type java.lang.String cannot be converted to JSONArray

想????是出在哪呢???
本?端??端主?的php路? ?名都是一?的
mySQL的名?和?料表也全部都一?
但??端主??????
如附?所示
?是在本?端?正?的logcat:


回複討論(解決方案)

Value of type java.lang.String cannot be converted to JSONArray
多半是 BOM 頭在作怪

Value of type java.lang.String cannot be converted to JSONArray
多半是 BOM 頭在作怪
不好意思 小妹是初?者 ?在是?不透..
可以?大大再?明白一?? 非常感?!!><

?是???端php失?的logcat:
"dayoff":"\u7121\u8cc7\u6599","recommend":"\u56de\u934b\u8089120\u5143\u
04-21 07:31:35.429: E/log_tag(375): org.json.JSONException: Value ? of type java.lang.String cannot be converted to JSONArray

?是??本?端php成功的logcat:
"dayoff":"\u7121\u8cc7\u6599","recommend":"\u56de\u934b\u8089120\u5143\u5ba

你最好給出連結地址給我看看
如果不方便,或不在公網上
那麼你可以這樣
echo base64_encode(file_get_contents('連結地址'));
貼出結果

你最好給出連結地址給我看看
如果不方便,或不在公網上
那麼你可以這樣
echo base64_encode(file_get_contents('連結地址'));
貼出結果
???位大大!!:)
我解?了 果然是BOM的??!!><

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.