{"action":"closed","number":412,"pull_request":{"url":"https://api.github.com/repos/top-think/thinkphp/pulls/412","id":66583765,"html_url":"https://github.com/top-think/thinkphp/pull/412","diff_url":"https://github.com/top-think/thinkphp/pull/412.diff","patch_url":"https://github.com/top-think/thinkphp/pull/412.patch","issue_url":"https://api.github.com/repos/top-think/thinkphp/issues/412","number":412,"state":"closed","locked":false,"title":"解决Json中文编码为unicode的问题","user":{"login":"DefineFC","id":5779281,"avatar_url":"https://avatars.githubusercontent.com/u/5779281?v=3","gravatar_id":"","url":"https://api.github.com/users/DefineFC","html_url":"https://github.com/DefineFC","followers_url":"https://api.github.com/users/DefineFC/followers","following_url":"https://api.github.com/users/DefineFC/following{/other_user}","gists_url":"https://api.github.com/users/DefineFC/gists{/gist_id}","starred_url":"https://api.github.com/users/DefineFC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefineFC/subscriptions","organizations_url":"https://api.github.com/users/DefineFC/orgs","repos_url":"https://api.github.com/users/DefineFC/repos","events_url":"https://api.github.com/users/DefineFC/events{/privacy}","received_events_url":"https://api.github.com/users/DefineFC/received_events","type":"User","site_admin":false},"body":"解决Json中文编码为unicode的问题(mod `RestController.class.php`)\r\n\r\n- PHP>=5.4, 使用`JSON_UNESCAPED_UNICODE`\r\n- 在PHP<=5.3中，先将中文字段`urlencode`，`json_encode`后，再用`urldecode`，也可以保证中文不会被转成unicode\r\n\r\n[ref: http://www.thinkphp.cn/topic/7857.html](http://www.thinkphp.cn/topic/7857.html)","created_at":"2016-04-15T02:54:02Z","updated_at":"2016-04-18T10:20:30Z","closed_at":"2016-04-18T10:20:30Z","merged_at":"2016-04-18T10:20:30Z","merge_commit_sha":"e27461be9e25e49e20686cec884be5e197ef5661","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/top-think/thinkphp/pulls/412/commits","review_comments_url":"https://api.github.com/repos/top-think/thinkphp/pulls/412/comments","review_comment_url":"https://api.github.com/repos/top-think/thinkphp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/top-think/thinkphp/issues/412/comments","statuses_url":"https://api.github.com/repos/top-think/thinkphp/statuses/facf7f1e1248de21645c3461aaaf0923e602bc18","head":{"label":"DefineFC:patch-1","ref":"patch-1","sha":"facf7f1e1248de21645c3461aaaf0923e602bc18","user":{"login":"DefineFC","id":5779281,"avatar_url":"https://avatars.githubusercontent.com/u/5779281?v=3","gravatar_id":"","url":"https://api.github.com/users/DefineFC","html_url":"https://github.com/DefineFC","followers_url":"https://api.github.com/users/DefineFC/followers","following_url":"https://api.github.com/users/DefineFC/following{/other_user}","gists_url":"https://api.github.com/users/DefineFC/gists{/gist_id}","starred_url":"https://api.github.com/users/DefineFC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefineFC/subscriptions","organizations_url":"https://api.github.com/users/DefineFC/orgs","repos_url":"https://api.github.com/users/DefineFC/repos","events_url":"https://api.github.com/users/DefineFC/events{/privacy}","received_events_url":"https://api.github.com/users/DefineFC/received_events","type":"User","site_admin":false},"repo":{"id":56285050,"name":"thinkphp","full_name":"DefineFC/thinkphp","owner":{"login":"DefineFC","id":5779281,"avatar_url":"https://avatars.githubusercontent.com/u/5779281?v=3","gravatar_id":"","url":"https://api.github.com/users/DefineFC","html_url":"https://github.com/DefineFC","followers_url":"https://api.github.com/users/DefineFC/followers","following_url":"https://api.github.com/users/DefineFC/following{/other_user}","gists_url":"https://api.github.com/users/DefineFC/gists{/gist_id}","starred_url":"https://api.github.com/users/DefineFC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefineFC/subscriptions","organizations_url":"https://api.github.com/users/DefineFC/orgs","repos_url":"https://api.github.com/users/DefineFC/repos","events_url":"https://api.github.com/users/DefineFC/events{/privacy}","received_events_url":"https://api.github.com/users/DefineFC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DefineFC/thinkphp","description":"基于PHP5的简单快速的面向对象的PHP框架","fork":true,"url":"https://api.github.com/repos/DefineFC/thinkphp","forks_url":"https://api.github.com/repos/DefineFC/thinkphp/forks","keys_url":"https://api.github.com/repos/DefineFC/thinkphp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefineFC/thinkphp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefineFC/thinkphp/teams","hooks_url":"https://api.github.com/repos/DefineFC/thinkphp/hooks","issue_events_url":"https://api.github.com/repos/DefineFC/thinkphp/issues/events{/number}","events_url":"https://api.github.com/repos/DefineFC/thinkphp/events","assignees_url":"https://api.github.com/repos/DefineFC/thinkphp/assignees{/user}","branches_url":"https://api.github.com/repos/DefineFC/thinkphp/branches{/branch}","tags_url":"https://api.github.com/repos/DefineFC/thinkphp/tags","blobs_url":"https://api.github.com/repos/DefineFC/thinkphp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefineFC/thinkphp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefineFC/thinkphp/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefineFC/thinkphp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefineFC/thinkphp/statuses/{sha}","languages_url":"https://api.github.com/repos/DefineFC/thinkphp/languages","stargazers_url":"https://api.github.com/repos/DefineFC/thinkphp/stargazers","contributors_url":"https://api.github.com/repos/DefineFC/thinkphp/contributors","subscribers_url":"https://api.github.com/repos/DefineFC/thinkphp/subscribers","subscription_url":"https://api.github.com/repos/DefineFC/thinkphp/subscription","commits_url":"https://api.github.com/repos/DefineFC/thinkphp/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefineFC/thinkphp/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefineFC/thinkphp/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefineFC/thinkphp/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefineFC/thinkphp/contents/{+path}","compare_url":"https://api.github.com/repos/DefineFC/thinkphp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefineFC/thinkphp/merges","archive_url":"https://api.github.com/repos/DefineFC/thinkphp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefineFC/thinkphp/downloads","issues_url":"https://api.github.com/repos/DefineFC/thinkphp/issues{/number}","pulls_url":"https://api.github.com/repos/DefineFC/thinkphp/pulls{/number}","milestones_url":"https://api.github.com/repos/DefineFC/thinkphp/milestones{/number}","notifications_url":"https://api.github.com/repos/DefineFC/thinkphp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefineFC/thinkphp/labels{/name}","releases_url":"https://api.github.com/repos/DefineFC/thinkphp/releases{/id}","deployments_url":"https://api.github.com/repos/DefineFC/thinkphp/deployments","created_at":"2016-04-15T02:36:03Z","updated_at":"2016-04-15T02:36:05Z","pushed_at":"2016-04-15T02:52:48Z","git_url":"git://github.com/DefineFC/thinkphp.git","ssh_url":"git@github.com:DefineFC/thinkphp.git","clone_url":"https://github.com/DefineFC/thinkphp.git","svn_url":"https://github.com/DefineFC/thinkphp","homepage":"http://www.thinkphp.cn","size":9507,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"top-think:master","ref":"master","sha":"f44bd2a5175a1aaafa1016326c05b1fddf2cde56","user":{"login":"top-think","id":16305258,"avatar_url":"https://avatars.githubusercontent.com/u/16305258?v=3","gravatar_id":"","url":"https://api.github.com/users/top-think","html_url":"https://github.com/top-think","followers_url":"https://api.github.com/users/top-think/followers","following_url":"https://api.github.com/users/top-think/following{/other_user}","gists_url":"https://api.github.com/users/top-think/gists{/gist_id}","starred_url":"https://api.github.com/users/top-think/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/top-think/subscriptions","organizations_url":"https://api.github.com/users/top-think/orgs","repos_url":"https://api.github.com/users/top-think/repos","events_url":"https://api.github.com/users/top-think/events{/privacy}","received_events_url":"https://api.github.com/users/top-think/received_events","type":"Organization","site_admin":false},"repo":{"id":2536618,"name":"thinkphp","full_name":"top-think/thinkphp","owner":{"login":"top-think","id":16305258,"avatar_url":"https://avatars.githubusercontent.com/u/16305258?v=3","gravatar_id":"","url":"https://api.github.com/users/top-think","html_url":"https://github.com/top-think","followers_url":"https://api.github.com/users/top-think/followers","following_url":"https://api.github.com/users/top-think/following{/other_user}","gists_url":"https://api.github.com/users/top-think/gists{/gist_id}","starred_url":"https://api.github.com/users/top-think/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/top-think/subscriptions","organizations_url":"https://api.github.com/users/top-think/orgs","repos_url":"https://api.github.com/users/top-think/repos","events_url":"https://api.github.com/users/top-think/events{/privacy}","received_events_url":"https://api.github.com/users/top-think/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/top-think/thinkphp","description":"基于PHP5的简单快速的面向对象的PHP框架","fork":false,"url":"https://api.github.com/repos/top-think/thinkphp","forks_url":"https://api.github.com/repos/top-think/thinkphp/forks","keys_url":"https://api.github.com/repos/top-think/thinkphp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/top-think/thinkphp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/top-think/thinkphp/teams","hooks_url":"https://api.github.com/repos/top-think/thinkphp/hooks","issue_events_url":"https://api.github.com/repos/top-think/thinkphp/issues/events{/number}","events_url":"https://api.github.com/repos/top-think/thinkphp/events","assignees_url":"https://api.github.com/repos/top-think/thinkphp/assignees{/user}","branches_url":"https://api.github.com/repos/top-think/thinkphp/branches{/branch}","tags_url":"https://api.github.com/repos/top-think/thinkphp/tags","blobs_url":"https://api.github.com/repos/top-think/thinkphp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/top-think/thinkphp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/top-think/thinkphp/git/refs{/sha}","trees_url":"https://api.github.com/repos/top-think/thinkphp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/top-think/thinkphp/statuses/{sha}","languages_url":"https://api.github.com/repos/top-think/thinkphp/languages","stargazers_url":"https://api.github.com/repos/top-think/thinkphp/stargazers","contributors_url":"https://api.github.com/repos/top-think/thinkphp/contributors","subscribers_url":"https://api.github.com/repos/top-think/thinkphp/subscribers","subscription_url":"https://api.github.com/repos/top-think/thinkphp/subscription","commits_url":"https://api.github.com/repos/top-think/thinkphp/commits{/sha}","git_commits_url":"https://api.github.com/repos/top-think/thinkphp/git/commits{/sha}","comments_url":"https://api.github.com/repos/top-think/thinkphp/comments{/number}","issue_comment_url":"https://api.github.com/repos/top-think/thinkphp/issues/comments{/number}","contents_url":"https://api.github.com/repos/top-think/thinkphp/contents/{+path}","compare_url":"https://api.github.com/repos/top-think/thinkphp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/top-think/thinkphp/merges","archive_url":"https://api.github.com/repos/top-think/thinkphp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/top-think/thinkphp/downloads","issues_url":"https://api.github.com/repos/top-think/thinkphp/issues{/number}","pulls_url":"https://api.github.com/repos/top-think/thinkphp/pulls{/number}","milestones_url":"https://api.github.com/repos/top-think/thinkphp/milestones{/number}","notifications_url":"https://api.github.com/repos/top-think/thinkphp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/top-think/thinkphp/labels{/name}","releases_url":"https://api.github.com/repos/top-think/thinkphp/releases{/id}","deployments_url":"https://api.github.com/repos/top-think/thinkphp/deployments","created_at":"2011-10-08T03:25:03Z","updated_at":"2016-04-18T06:22:01Z","pushed_at":"2016-04-18T10:20:30Z","git_url":"git://github.com/top-think/thinkphp.git","ssh_url":"git@github.com:top-think/thinkphp.git","clone_url":"https://github.com/top-think/thinkphp.git","svn_url":"https://github.com/top-think/thinkphp","homepage":"http://www.thinkphp.cn","size":10741,"stargazers_count":1835,"watchers_count":1835,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1326,"mirror_url":null,"open_issues_count":238,"forks":1326,"open_issues":238,"watchers":1835,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/top-think/thinkphp/pulls/412"},"html":{"href":"https://github.com/top-think/thinkphp/pull/412"},"issue":{"href":"https://api.github.com/repos/top-think/thinkphp/issues/412"},"comments":{"href":"https://api.github.com/repos/top-think/thinkphp/issues/412/comments"},"review_comments":{"href":"https://api.github.com/repos/top-think/thinkphp/pulls/412/comments"},"review_comment":{"href":"https://api.github.com/repos/top-think/thinkphp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/top-think/thinkphp/pulls/412/commits"},"statuses":{"href":"https://api.github.com/repos/top-think/thinkphp/statuses/facf7f1e1248de21645c3461aaaf0923e602bc18"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"liu21st","id":1111670,"avatar_url":"https://avatars.githubusercontent.com/u/1111670?v=3","gravatar_id":"","url":"https://api.github.com/users/liu21st","html_url":"https://github.com/liu21st","followers_url":"https://api.github.com/users/liu21st/followers","following_url":"https://api.github.com/users/liu21st/following{/other_user}","gists_url":"https://api.github.com/users/liu21st/gists{/gist_id}","starred_url":"https://api.github.com/users/liu21st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liu21st/subscriptions","organizations_url":"https://api.github.com/users/liu21st/orgs","repos_url":"https://api.github.com/users/liu21st/repos","events_url":"https://api.github.com/users/liu21st/events{/privacy}","received_events_url":"https://api.github.com/users/liu21st/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":40,"deletions":2,"changed_files":1}}