{"action":"created","issue":{"url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/150","repository_url":"https://api.github.com/repos/jeroenooms/jsonlite","labels_url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/150/comments","events_url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/150/events","html_url":"https://github.com/jeroenooms/jsonlite/issues/150","id":179099760,"number":150,"title":"encoding","user":{"login":"Yuanchao-Xu","id":12883455,"avatar_url":"https://avatars.githubusercontent.com/u/12883455?v=3","gravatar_id":"","url":"https://api.github.com/users/Yuanchao-Xu","html_url":"https://github.com/Yuanchao-Xu","followers_url":"https://api.github.com/users/Yuanchao-Xu/followers","following_url":"https://api.github.com/users/Yuanchao-Xu/following{/other_user}","gists_url":"https://api.github.com/users/Yuanchao-Xu/gists{/gist_id}","starred_url":"https://api.github.com/users/Yuanchao-Xu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yuanchao-Xu/subscriptions","organizations_url":"https://api.github.com/users/Yuanchao-Xu/orgs","repos_url":"https://api.github.com/users/Yuanchao-Xu/repos","events_url":"https://api.github.com/users/Yuanchao-Xu/events{/privacy}","received_events_url":"https://api.github.com/users/Yuanchao-Xu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-25T18:12:07Z","updated_at":"2016-09-25T18:27:35Z","closed_at":null,"body":"I try to convert a json object to R dataframe, here is the json object:\r\n\r\n    json <-\r\n        '[\r\n    {\"Name\" : \"a\", \"Age\" : 32, \"Occupation\" : \"凡达\"}, \r\n    {\"Name\" : \"b\", \"Age\" : 21, \"Occupation\" : \"打蜡设计费\"},\r\n    {\"Name\" : \"c\", \"Age\" : 20, \"Occupation\" : \"的拉斯克奖飞\"}\r\n    ]'\r\n\r\nthen I use fromJSON, `mydf <- jsonlite::fromJSON(json)`, the result is \r\n\r\n      Name Age                                       Occupation\r\n    1    a  32                                 <U+51E1><U+8FBE>\r\n    2    b  21         <U+6253><U+8721><U+8BBE><U+8BA1><U+8D39>\r\n    3    c  20 <U+7684><U+62C9><U+65AF><U+514B><U+5956><U+98DE>\r\n\r\nI was wondering how this happens, and is there any solution?\r\n"},"comment":{"url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/comments/249437508","html_url":"https://github.com/jeroenooms/jsonlite/issues/150#issuecomment-249437508","issue_url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/150","id":249437508,"user":{"login":"jeroenooms","id":216319,"avatar_url":"https://avatars.githubusercontent.com/u/216319?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenooms","html_url":"https://github.com/jeroenooms","followers_url":"https://api.github.com/users/jeroenooms/followers","following_url":"https://api.github.com/users/jeroenooms/following{/other_user}","gists_url":"https://api.github.com/users/jeroenooms/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenooms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenooms/subscriptions","organizations_url":"https://api.github.com/users/jeroenooms/orgs","repos_url":"https://api.github.com/users/jeroenooms/repos","events_url":"https://api.github.com/users/jeroenooms/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenooms/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T18:27:35Z","updated_at":"2016-09-25T18:27:35Z","body":"This usually happens when R runs in `C` locale. You need to run R in `UTF-8` locale. What does `sessionInfo()` give?"}}
{"actor":{"display_login":"jeroenooms"}}