{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/RTVS/issues/1340","repository_url":"https://api.github.com/repos/Microsoft/RTVS","labels_url":"https://api.github.com/repos/Microsoft/RTVS/issues/1340/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/RTVS/issues/1340/comments","events_url":"https://api.github.com/repos/Microsoft/RTVS/issues/1340/events","html_url":"https://github.com/Microsoft/RTVS/issues/1340","id":143229932,"number":1340,"title":"read.csv garbles non-ascii (Japanese) characters","user":{"login":"Marchen","id":3863577,"avatar_url":"https://avatars.githubusercontent.com/u/3863577?v=3","gravatar_id":"","url":"https://api.github.com/users/Marchen","html_url":"https://github.com/Marchen","followers_url":"https://api.github.com/users/Marchen/followers","following_url":"https://api.github.com/users/Marchen/following{/other_user}","gists_url":"https://api.github.com/users/Marchen/gists{/gist_id}","starred_url":"https://api.github.com/users/Marchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marchen/subscriptions","organizations_url":"https://api.github.com/users/Marchen/orgs","repos_url":"https://api.github.com/users/Marchen/repos","events_url":"https://api.github.com/users/Marchen/events{/privacy}","received_events_url":"https://api.github.com/users/Marchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-24T12:17:21Z","updated_at":"2016-03-26T05:26:31Z","closed_at":null,"body":"The content of the attached file is\r\n\r\n\"Language\"\r\n\"English\"\r\n\"日本語\"\r\n\r\nIf I read the file using read.csv(), it returns\r\n\r\nread.csv(\"test_cp932.txt\")\r\n  Language\r\n1  English\r\n2   “ú{ê\r\n\r\nAdding fileEncoding = \"CP932\" had no effect.\r\n\r\n[test_cp932.txt](https://github.com/Microsoft/RTVS/files/187791/test_cp932.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/RTVS/issues/comments/201707279","html_url":"https://github.com/Microsoft/RTVS/issues/1340#issuecomment-201707279","issue_url":"https://api.github.com/repos/Microsoft/RTVS/issues/1340","id":201707279,"user":{"login":"Marchen","id":3863577,"avatar_url":"https://avatars.githubusercontent.com/u/3863577?v=3","gravatar_id":"","url":"https://api.github.com/users/Marchen","html_url":"https://github.com/Marchen","followers_url":"https://api.github.com/users/Marchen/followers","following_url":"https://api.github.com/users/Marchen/following{/other_user}","gists_url":"https://api.github.com/users/Marchen/gists{/gist_id}","starred_url":"https://api.github.com/users/Marchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marchen/subscriptions","organizations_url":"https://api.github.com/users/Marchen/orgs","repos_url":"https://api.github.com/users/Marchen/repos","events_url":"https://api.github.com/users/Marchen/events{/privacy}","received_events_url":"https://api.github.com/users/Marchen/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T05:26:31Z","updated_at":"2016-03-26T05:26:31Z","body":"I'm not sure, actually. When I print a element of data.frame, it works correctly.\r\n\r\n> df <- data.frame(lang = \"日本語\")\r\n> df[1, 1]\r\n[1] 日本語\r\nLevels: 日本語\r\n\r\nbut when I print entire data.frame, it garbles Japanese characters.\r\n> df\r\n    lang\r\n1 “ú{ê\r\n\r\nFollowing part of print.data.frame() seems to cause garbling.\r\n> m <- as.matrix(format.data.frame(x, digits = digits, \r\n            na.encode = FALSE))\r\n\r\nbut again, I'm not sure this is the same problem as in #1211."}}