Home > Backend Development > PHP Tutorial > ,json_decode含gbk字串

,json_decode含gbk字串

WBOY
Release: 2016-06-13 12:38:11
Original
778 people have browsed it

求助,json_decode含gbk字串

本帖最后由 novas 于 2013-09-02 20:47:19 编辑 一段curl取回的字串,完全符合json格式,格式没有问题,中文用的gbk编码,json_decode只支持utf-8,求助怎么进行正常的json_decode解析,能显示中文,谢谢各位大侠

{<br>
    "watershed": 100,<br>
    "maxPage": 1,<br>
    "currentPageNum": 1,<br>
    "comments": [<br>
        {<br>
            "append": null,<br>
            "auction": {<br>
                "aucNumId": "17813389603",<br>
                "auctionPic": "http://img.taobaocdn.com/bao/uploaded/null_40x40.jpg",<br>
                "link": "http://tradearchive.taobao.com/trade/detail/trade_snap.htm?trade_id=242542116456739",<br>
                "sku": "颜色分类:橘红色  尺码:均码(发圆通)",<br>
                "thumbnail": "",<br>
                "title": ""<br>
            },<br>
            "award": "",<br>
            "bidPriceMoney": null,<br>
            "buyAmount": 0,<br>
            "content": "因为清明放假的原因发货晚了两天 店家一再跟我说抱歉,态度非常的好 让我感觉的感动,虽然发晚了两天 但快递却很给力,很快收到了 这一款V领小开衫的颜色非常的漂亮喔 款式新,做工细致,精美,显高档, 用的面料非常不错,手感非常的舒适 ",<br>
            "date": "2013年04月10日 14:28",<br>
            "dayAfterConfirm": 0,<br>
            "enableSNS": false,<br>
            "from": "",<br>
            "lastModifyFrom": 0,<br>
            "payTime": null,<br>
            "photos": [<br>
                {<br>
                    "fileId": 343572768, <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template