{"action":"created","issue":{"url":"https://api.github.com/repos/lanrion/weixin_authorize/issues/52","labels_url":"https://api.github.com/repos/lanrion/weixin_authorize/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/lanrion/weixin_authorize/issues/52/comments","events_url":"https://api.github.com/repos/lanrion/weixin_authorize/issues/52/events","html_url":"https://github.com/lanrion/weixin_authorize/pull/52","id":74655380,"number":52,"title":"获取微信个人信息时JSON parse 报错","user":{"login":"huxinghai1988","id":1279304,"avatar_url":"https://avatars.githubusercontent.com/u/1279304?v=3","gravatar_id":"","url":"https://api.github.com/users/huxinghai1988","html_url":"https://github.com/huxinghai1988","followers_url":"https://api.github.com/users/huxinghai1988/followers","following_url":"https://api.github.com/users/huxinghai1988/following{/other_user}","gists_url":"https://api.github.com/users/huxinghai1988/gists{/gist_id}","starred_url":"https://api.github.com/users/huxinghai1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huxinghai1988/subscriptions","organizations_url":"https://api.github.com/users/huxinghai1988/orgs","repos_url":"https://api.github.com/users/huxinghai1988/repos","events_url":"https://api.github.com/users/huxinghai1988/events{/privacy}","received_events_url":"https://api.github.com/users/huxinghai1988/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-09T11:40:13Z","updated_at":"2015-07-29T13:59:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lanrion/weixin_authorize/pulls/52","html_url":"https://github.com/lanrion/weixin_authorize/pull/52","diff_url":"https://github.com/lanrion/weixin_authorize/pull/52.diff","patch_url":"https://github.com/lanrion/weixin_authorize/pull/52.patch"},"body":"通过调试，返回数据结构\r\n\r\n```SHELL\r\n\"{\\\"subscribe\\\":1,\\\"openid\\\":\\\"oH6****C2YA-Og_KNdQQ4QB8\\\",\\\"nickname\\\":\\\"\\x14\\xE7\\x90\\xA6\\xE5\\xA8\\x85\\xF0\\x9F\\x8D\\xAD\\\",\\\"sex\\\":2,\\\"language\\\":\\\"zh_CN\\\",\\\"city\\\":\\\"\\xE4\\xB8\\x9C\\xE8\\x8E\\x9E\\\",\\\"province\\\":\\\"\\xE5\\xB9\\xBF\\xE4\\xB8\\x9C\\\",\\\"country\\\":\\\"\\xE4\\xB8\\xAD\\xE5\\x9B\\xBD\\\",\\\"headimgurl\\\":\\\"http:\\\\/\\\\/wx.qlogo.cn\\\\/mmopen\\\\/169t5I0ibYZf16iarTjdQWf3QW5VVKwXRGHSPVj0ibDibqYqLyEQxPMR1HBkibkUlEibmFj8zYkvApibIPicdtIb5tib3MC766DxTaM2D\\\\/0\\\",\\\"subscribe_time\\\":1431133972,\\\"remark\\\":\\\"\\\"}\"\r\n```\r\n\r\n编码格式： ASCII-8BIT\r\nJSON parse 报错原因是因为nickname 包含了\\x14 这个是ASCII control characters，所以在转换替换一下\r\n\r\n不知道为什么微信nickname 还有这样的怪东西\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lanrion/weixin_authorize/issues/comments/125960941","html_url":"https://github.com/lanrion/weixin_authorize/pull/52#issuecomment-125960941","issue_url":"https://api.github.com/repos/lanrion/weixin_authorize/issues/52","id":125960941,"user":{"login":"lanrion","id":1432529,"avatar_url":"https://avatars.githubusercontent.com/u/1432529?v=3","gravatar_id":"","url":"https://api.github.com/users/lanrion","html_url":"https://github.com/lanrion","followers_url":"https://api.github.com/users/lanrion/followers","following_url":"https://api.github.com/users/lanrion/following{/other_user}","gists_url":"https://api.github.com/users/lanrion/gists{/gist_id}","starred_url":"https://api.github.com/users/lanrion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanrion/subscriptions","organizations_url":"https://api.github.com/users/lanrion/orgs","repos_url":"https://api.github.com/users/lanrion/repos","events_url":"https://api.github.com/users/lanrion/events{/privacy}","received_events_url":"https://api.github.com/users/lanrion/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T13:59:39Z","updated_at":"2015-07-29T13:59:39Z","body":"@huxinghai1988 近些时间确实发现存在这个问题，感谢你前期做的工作，可否更新一下这个PR，我好合并进去。:smile:"}}