关于update的疑问

2 views
Skip to first unread message

Allen

unread,
Apr 27, 2009, 4:48:47 AM4/27/09
to dig...@googlegroups.com
为什么我经过urlencode后的content,在digu上显示的仍然是显示encode,难道没有decode?
{"created_at":"Mon Apr 27 16:37:19 +0800 2009","id":"659374","text":"API+Update+%E6%B5%8B%E8%AF%95+1","picPath":[],"source":"<a href=\"http:\/\/www.digu.com\/jump?aid=plusIndex\" target=\"_blank\" >API<\/a>","in_reply_to_status_id":"","in_reply_to_user_id":"","in_reply_to_user_name":"","favorited":"false","in_reply_to_screen_name":"","user":{"id":"10019529","name":"ithink","screen_name":"ithink","location":"","description":"","profile_image_url":"http:\/\/pic.digu.com:80\/file\/10\/01\/95\/29\/default\/SIGN10019529_24x24.jpg","url":"http:\/\/www.digu.com\/ithink","protected":"true","followers_count":"0","friends_count":"5","favourites_count":"0","statuses_count":"41"}}

另外,新旧API的Content-Type为何不一样?

旧:
HTTP/1.1 200 The request has succeeded
Date: Mon, 27 Apr 2009 08:43:52 GMT
Content-Type: application/json; charset=UTF-8
Server: AsyncWeb
Date: Mon, 27 Apr 2009 08:43:52 GMT
Content-Length: 415

新:
HTTP/1.1 200 The request has succeeded
Date: Mon, 27 Apr 2009 08:37:09 GMT
Content-Type: application/json; charset=ISO-8859-1
Server: AsyncWeb
Date: Mon, 27 Apr 2009 08:37:09 GMT
Content-Length: 677


--
My Blog Is Http://www.movoin.com/
我在读什么@GoogleReader [2009-04-20]

bingu

unread,
Apr 27, 2009, 5:57:23 AM4/27/09
to dig...@googlegroups.com
这个是json吧,要用json_decode(好像要php5以上才支持。)

2009/4/27 Allen <mov...@gmail.com>



--
我的blog:http://bingu.net
玩WordPress:http://wanwp.com
Reply all
Reply to author
Forward
0 new messages