{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/722","repository_url":"https://api.github.com/repos/hadley/dplyr","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/722/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/722/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/722/events","html_url":"https://github.com/hadley/dplyr/issues/722","id":46697584,"number":722,"title":"Chinese Column Name Erro (dplyr 0.3)","user":{"login":"shrektan","id":8368933,"avatar_url":"https://avatars.githubusercontent.com/u/8368933?v=3","gravatar_id":"","url":"https://api.github.com/users/shrektan","html_url":"https://github.com/shrektan","followers_url":"https://api.github.com/users/shrektan/followers","following_url":"https://api.github.com/users/shrektan/following{/other_user}","gists_url":"https://api.github.com/users/shrektan/gists{/gist_id}","starred_url":"https://api.github.com/users/shrektan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrektan/subscriptions","organizations_url":"https://api.github.com/users/shrektan/orgs","repos_url":"https://api.github.com/users/shrektan/repos","events_url":"https://api.github.com/users/shrektan/events{/privacy}","received_events_url":"https://api.github.com/users/shrektan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hadley/dplyr/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"romainfrancois","id":2625526,"avatar_url":"https://avatars.githubusercontent.com/u/2625526?v=3","gravatar_id":"","url":"https://api.github.com/users/romainfrancois","html_url":"https://github.com/romainfrancois","followers_url":"https://api.github.com/users/romainfrancois/followers","following_url":"https://api.github.com/users/romainfrancois/following{/other_user}","gists_url":"https://api.github.com/users/romainfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/romainfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainfrancois/subscriptions","organizations_url":"https://api.github.com/users/romainfrancois/orgs","repos_url":"https://api.github.com/users/romainfrancois/repos","events_url":"https://api.github.com/users/romainfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/romainfrancois/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hadley/dplyr/milestones/7","html_url":"https://github.com/hadley/dplyr/milestones/0.4","labels_url":"https://api.github.com/repos/hadley/dplyr/milestones/7/labels","id":739722,"number":7,"title":"0.4","description":"","creator":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":84,"state":"closed","created_at":"2014-08-01T13:42:47Z","updated_at":"2015-05-19T15:10:58Z","due_on":null,"closed_at":"2015-05-19T15:10:58Z"},"comments":13,"created_at":"2014-10-24T02:02:45Z","updated_at":"2016-05-09T13:05:54Z","closed_at":"2014-11-18T04:52:14Z","body":"# Issue description\r\n\r\nHi,\r\n\r\nI'm a user in China, and my work used a lot of your R packages. So, firstly, I need to say thanks very much! You help us a lot!\r\n\r\nWhen I updated the dplyr 0.3, I found some data.frame with Chinese Column Name can't work fine under the new dplyr packages.\r\n\r\nWhenever the data frame was mutated, the chinese colname of that dataframe would become a messy after that. It seems like a problem of Unicode... \r\n\r\nI think it would be perfect under Ubuntu, where all the text use UTF-8. However, in Windows, the GB2312 is unavoidable...\r\n\r\nHope this is something can be fixed, thanks again!\r\n\r\n```\r\n# Here is the code\r\n\r\n> filter(df2, 中文1 > 5)\r\nError in filter_impl(.data, dots) : object '中文1' not found\r\n> library('dplyr')\r\n> df <- data.frame(中文1 = 1:10, 中文2 = 1:10, eng = 1:10)\r\n> df\r\n\r\n   中文1 中文2 eng\r\n1      1     1   1\r\n2      2     2   2\r\n3      3     3   3\r\n4      4     4   4\r\n5      5     5   5\r\n6      6     6   6\r\n7      7     7   7\r\n8      8     8   8\r\n9      9     9   9\r\n10    10    10  10\r\n\r\n> df2 <- df %>% mutate(中文1 = 中文1 + 1)\r\n> df2\r\n\r\n   中文1 中文2 eng\r\n1      2     1   1\r\n2      3     2   2\r\n3      4     3   3\r\n4      5     4   4\r\n5      6     5   5\r\n6      7     6   6\r\n7      8     7   7\r\n8      9     8   8\r\n9     10     9   9\r\n10    11    10  10\r\n\r\n> filter(df2, eng > 5)\r\n\r\n  涓枃1 涓枃2 eng\r\n1      7      6   6\r\n2      8      7   7\r\n3      9      8   8\r\n4     10      9   9\r\n5     11     10  10\r\n\r\n> filter(df2, 中文1 > 5)\r\n\r\nError in filter_impl(.data, dots) : object '中文1' not found\r\n\r\n# Here is my sessionInfo\r\n\r\n> sessionInfo()\r\nR version 3.1.1 (2014-07-10)\r\nPlatform: i386-w64-mingw32/i386 (32-bit)\r\n\r\nlocale:\r\n[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936 \r\n[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936   \r\n[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936\r\n[4] LC_NUMERIC=C                                                   \r\n[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936    \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nloaded via a namespace (and not attached):\r\n[1] tools_3.1.1\r\n```\r\n\r\n## The test code\r\n```\r\nlibrary('dplyr')\r\ndf <- data.frame(中文1 = 1:10, 中文2 = 1:10, eng = 1:10)\r\ndf\r\ndf2 <- df %>% mutate(中文1 = 中文1 + 1)\r\ndf2\r\nfilter(df2, eng > 5)\r\nfilter(df2, 中文1 > 5)\r\n```"},"comment":{"url":"https://api.github.com/repos/hadley/dplyr/issues/comments/217858660","html_url":"https://github.com/hadley/dplyr/issues/722#issuecomment-217858660","issue_url":"https://api.github.com/repos/hadley/dplyr/issues/722","id":217858660,"user":{"login":"krlmlr","id":1741643,"avatar_url":"https://avatars.githubusercontent.com/u/1741643?v=3","gravatar_id":"","url":"https://api.github.com/users/krlmlr","html_url":"https://github.com/krlmlr","followers_url":"https://api.github.com/users/krlmlr/followers","following_url":"https://api.github.com/users/krlmlr/following{/other_user}","gists_url":"https://api.github.com/users/krlmlr/gists{/gist_id}","starred_url":"https://api.github.com/users/krlmlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krlmlr/subscriptions","organizations_url":"https://api.github.com/users/krlmlr/orgs","repos_url":"https://api.github.com/users/krlmlr/repos","events_url":"https://api.github.com/users/krlmlr/events{/privacy}","received_events_url":"https://api.github.com/users/krlmlr/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T13:05:54Z","updated_at":"2016-05-09T13:05:54Z","body":"The test `no utf8 invasion (#722)` fails on my system (Ubuntu 15.10, 3074cf7bfa41c690e).\r\n\r\nPerhaps related: https://github.com/hadley/dplyr/issues/1507#issuecomment-217857642"}}