查看: 9007|回复: 2

[天气] 调用天气预报口返回数据中文乱码

[复制链接]

1

主题

2

帖子

14

积分

新手上路

Rank: 1

积分
14
米木匠家具 发表于 2016-7-6 11:22:15 | 显示全部楼层 |阅读模式
返回的数据:{"errNum":0,"errMsg":"success","retData":{"city":"\u5317\u4eac","cityid":"101010100","today":{"date":"2016-07-06","week":"\u661f\u671f\u4e09","curTemp":"30\u2103","aqi":"137","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"32\u2103","lowtemp":"22\u2103","type":"\u6674","index":[{"name":"\u611f\u5192\u6307\u6570","code":"gm","index":"","details":"\u5404\u9879\u6c14\u8c61\u6761\u4ef6\u9002\u5b9c\uff0c\u53d1\u751f\u611f\u5192\u673a\u7387\u8f83\u4f4e\u3002\u4f46\u8bf7\u907f\u514d\u957f\u671f\u5904\u4e8e\u7a7a\u8c03\u623f\u95f4\u4e2d\uff0c\u4ee5\u9632\u611f\u5192\u3002","otherName":""},{"code":"fs","details":"\u5c5e\u5f3a\u7d2b\u5916\u8f90\u5c04\u5929\u6c14\uff0c\u5916\u51fa\u65f6\u5e94\u52a0\u5f3a\u9632\u62a4\uff0c\u5efa\u8bae\u6d82\u64e6SPF\u572815-20\u4e4b\u95f4\uff0cPA++\u7684\u9632\u6652\u62a4\u80a4\u54c1\u3002","index":"\u5f3a","name":"\u9632\u6652\u6307\u6570","otherName":""},{"code":"ct","details":"\u5929\u6c14\u708e\u70ed\uff0c\u5efa\u8bae\u7740\u77ed\u886b\u3001\u77ed\u88d9\u3001\u77ed\u88e4\u3001\u8584\u578bT\u6064\u886b\u7b49\u6e05\u51c9\u590f\u5b63\u670d\u88c5\u3002","index":"\u708e\u70ed","name":"\u7a7f\u8863\u6307\u6570","otherName":""},{"code":"yd","details":"\u5929\u6c14\u8f83\u597d\uff0c\u6237\u5916\u8fd0\u52a8\u8bf7\u6ce8\u610f\u9632\u6652\u3002\u63a8\u8350\u60a8\u8fdb\u884c\u5ba4\u5185\u8fd0\u52a8\u3002","index":"\u8f83\u9002\u5b9c","name":"\u8fd0\u52a8\u6307\u6570","otherName":""},{"code":"xc","details":"\u4e0d\u5b9c\u6d17\u8f66\uff0c\u672a\u676524\u5c0f\u65f6\u5185\u6709\u973e\uff0c\u5982\u679c\u5728\u6b64\u671f\u95f4\u6d17\u8f66\uff0c\u4f1a\u5f04\u810f\u60a8\u7684\u7231\u8f66\u3002","index":"\u4e0d\u5b9c","name":"\u6d17\u8f66\u6307\u6570","otherName":""},{"code":"ls","details":"\u5929\u6c14\u4e0d\u9519\uff0c\u6781\u9002\u5b9c\u667e\u6652\u3002\u6293\u7d27\u65f6\u673a\u628a\u4e45\u672a\u89c1\u9633\u5149\u7684\u8863\u7269\u642c\u51fa\u6765\u6652\u6652\u592a\u9633\u5427\uff01","index":"\u6781\u9002\u5b9c","name":"\u667e\u6652\u6307\u6570","otherName":""}]},"forecast":[{"date":"2016-07-07","week":"\u661f\u671f\u56db","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"32\u2103","lowtemp":"23\u2103","type":"\u973e"},{"date":"2016-07-08","week":"\u661f\u671f\u4e94","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"32\u2103","lowtemp":"24\u2103","type":"\u591a\u4e91"},{"date":"2016-07-09","week":"\u661f\u671f\u516d","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"34\u2103","lowtemp":"25\u2103","type":"\u591a\u4e91"},{"date":"2016-07-10","week":"\u661f\u671f\u5929","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"35\u2103","lowtemp":"25\u2103","type":"\u6674"}],"history":[{"date":"2016-06-29","week":"\u661f\u671f\u4e09","aqi":"148","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"29\u2103","lowtemp":"22\u2103","type":"\u96f7\u9635\u96e8"},{"date":"2016-06-30","week":"\u661f\u671f\u56db","aqi":"108","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"31\u2103","lowtemp":"22\u2103","type":"\u591a\u4e91"},{"date":"2016-07-01","week":"\u661f\u671f\u4e94","aqi":"58","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"32\u2103","lowtemp":"21\u2103","type":"\u6674"},{"date":"2016-07-02","week":"\u661f\u671f\u516d","aqi":"108","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"33\u2103","lowtemp":"21\u2103","type":"\u6674"},{"date":"2016-07-03","week":"\u661f\u671f\u5929","aqi":"124","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"31\u2103","lowtemp":"23\u2103","type":"\u96f7\u9635\u96e8"},{"date":"2016-07-04","week":"\u661f\u671f\u4e00","aqi":"132","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"30\u2103","lowtemp":"21\u2103","type":"\u973e"},{"date":"2016-07-05","week":"\u661f\u671f\u4e8c","aqi":"124","fengxiang":"\u65e0\u6301\u7eed\u98ce\u5411","fengli":"\u5fae\u98ce\u7ea7","hightemp":"32\u2103","lowtemp":"22\u2103","type":"\u591a\u4e91"}]}}   怎么解决呀
7 V! ]6 Q+ Z) c9 _  G+ Q3 G+ D0 w! U( h, z( d  _/ a
回复

使用道具 举报

1

主题

2

帖子

14

积分

新手上路

Rank: 1

积分
14
 楼主| 米木匠家具 发表于 2016-7-6 11:28:35 | 显示全部楼层
解决了
回复

使用道具 举报

0

主题

1

帖子

6

积分

新手上路

Rank: 1

积分
6
地平线x5 发表于 2016-7-26 17:42:34 | 显示全部楼层
请问能简单说说怎么解决的么,同样遇到相同问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖   |

本版积分规则

最新精华