1024programmer PHP json string, Chinese Unicode encoding, PHP parsing problem, thank you!

json string, Chinese Unicode encoding, PHP parsing problem, thank you!

http://ip.taobao.com/instruct…

The interface returns such data,

1
2
3
4
{“code”:0,”data”:{“ip”:”210.75.225.254″,”country”:”\u4e2d\u56fd”,”area”:”\u534e\u5317″ ,

“region”:”\u5317\u4eac\u5e02″,”city”:”\u5317\u4eac\u5e02″,”county”:””,”isp”:”\u7535\u4fe1 “,

“country_id”:”86″,”area_id”:”100000″,”region_id”:”110000″,”city_id”:”110000″,

“county_id “:”-1″,”isp_id”:”100017″}}

Like this

1 “region”:”\u5317\u4eac\u5e02″,”city”:”\u5317\u4eac\u5e02″

How does php parse out the correct Chinese characters?
Thank you!

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/json-string-chinese-unicode-encoding-php-parsing-problem-thank-you/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索