{"action":"created","issue":{"url":"https://api.github.com/repos/benmatselby/sublime-phpcs/issues/131","labels_url":"https://api.github.com/repos/benmatselby/sublime-phpcs/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/benmatselby/sublime-phpcs/issues/131/comments","events_url":"https://api.github.com/repos/benmatselby/sublime-phpcs/issues/131/events","html_url":"https://github.com/benmatselby/sublime-phpcs/issues/131","id":70093526,"number":131,"title":"Windows users","user":{"login":"almeidaz","id":11940920,"avatar_url":"https://avatars.githubusercontent.com/u/11940920?v=3","gravatar_id":"","url":"https://api.github.com/users/almeidaz","html_url":"https://github.com/almeidaz","followers_url":"https://api.github.com/users/almeidaz/followers","following_url":"https://api.github.com/users/almeidaz/following{/other_user}","gists_url":"https://api.github.com/users/almeidaz/gists{/gist_id}","starred_url":"https://api.github.com/users/almeidaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almeidaz/subscriptions","organizations_url":"https://api.github.com/users/almeidaz/orgs","repos_url":"https://api.github.com/users/almeidaz/repos","events_url":"https://api.github.com/users/almeidaz/events{/privacy}","received_events_url":"https://api.github.com/users/almeidaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/benmatselby/sublime-phpcs/labels/Windows","name":"Windows","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-22T10:49:41Z","updated_at":"2015-04-22T16:41:55Z","closed_at":null,"body":"Hi, \r\n\r\nWhen i try to fix file with PHP CODE beautifier (phpcb)\r\n\r\nsublime console return :\r\n\r\n[Phpcs] CodeBeautifier\r\n[Phpcs] C:\\php\\pear\\phpcbf.bat C:\\Users\\shiva\\Desktop\\papp.php -n --standard=PSR2\r\n[Phpcs] C:\\php\\pear\\phpcbf.bat C:\\Users\\shiva\\Desktop\\papp.php -n --standard=PSR2\r\n[Phpcs] cwd: C:\\Users\\shiva\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files\\Sublime Text 3\\sublime_plugin.py\", line 550, in run_\r\n    return self.run(edit, **args)\r\n  File \"C:\\Users\\shiva\\AppData\\Roaming\\Sublime Text 3\\Packages\\phpcs\\phpcs.py\", line 706, in run\r\n    cmd.fix_standards_errors(tool, self.view.file_name())\r\n  File \"C:\\Users\\shiva\\AppData\\Roaming\\Sublime Text 3\\Packages\\phpcs\\phpcs.py\", line 547, in fix_standards_errors\r\n    fixes = CodeBeautifier().get_errors(path)\r\n  File \"C:\\Users\\shiva\\AppData\\Roaming\\Sublime Text 3\\Packages\\phpcs\\phpcs.py\", line 144, in get_errors\r\n    self.execute(path)\r\n  File \"C:\\Users\\shiva\\AppData\\Roaming\\Sublime Text 3\\Packages\\phpcs\\phpcs.py\", line 314, in execute\r\n    self.parse_report(args)\r\n  File \"C:\\Users\\shiva\\AppData\\Roaming\\Sublime Text 3\\Packages\\phpcs\\phpcs.py\", line 317, in parse_report\r\n    report = self.shell_out(args)\r\n  File \"C:\\Users\\shiva\\AppData\\Roaming\\Sublime Text 3\\Packages\\phpcs\\phpcs.py\", line 181, in shell_out\r\n    return data.decode()\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 1643: invalid start byte\r\n\r\nDo you have any idea for fix this issue?\r\nif you want more information tell me, i will supply.\r\n\r\nThx for help !"},"comment":{"url":"https://api.github.com/repos/benmatselby/sublime-phpcs/issues/comments/95259573","html_url":"https://github.com/benmatselby/sublime-phpcs/issues/131#issuecomment-95259573","issue_url":"https://api.github.com/repos/benmatselby/sublime-phpcs/issues/131","id":95259573,"user":{"login":"almeidaz","id":11940920,"avatar_url":"https://avatars.githubusercontent.com/u/11940920?v=3","gravatar_id":"","url":"https://api.github.com/users/almeidaz","html_url":"https://github.com/almeidaz","followers_url":"https://api.github.com/users/almeidaz/followers","following_url":"https://api.github.com/users/almeidaz/following{/other_user}","gists_url":"https://api.github.com/users/almeidaz/gists{/gist_id}","starred_url":"https://api.github.com/users/almeidaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almeidaz/subscriptions","organizations_url":"https://api.github.com/users/almeidaz/orgs","repos_url":"https://api.github.com/users/almeidaz/repos","events_url":"https://api.github.com/users/almeidaz/events{/privacy}","received_events_url":"https://api.github.com/users/almeidaz/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T16:41:54Z","updated_at":"2015-04-22T16:41:54Z","body":"Now i have This : \r\nC:\\2>phpcbf test.php\r\nChanging into directory C:\\2\r\nProcessing test.php [PHP => 172 tokens in 25 lines]... DONE in 19ms (18 fixable violations)\r\n        => Fixing file: 0/18 violations remaining [made 4 passes]... ←[32mDONE←[0m in 79ms\r\nArray\r\n(\r\n    [0] => patching file test.php\r\n    [1] => Hunk #1 FAILED at 1 (different line endings).\r\n    [2] => 1 out of 1 hunk FAILED -- saving rejects to file test.php.rej\r\n)\r\nReturned: 1\r\nTime: 448ms; Memory: 3Mb"}}