{"action":"created","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3569","repository_url":"https://api.github.com/repos/checkstyle/checkstyle","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3569/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3569/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3569/events","html_url":"https://github.com/checkstyle/checkstyle/issues/3569","id":190577137,"number":3569,"title":"zh-cn ,,,,  cmd gbk encode","user":{"login":"gMan1990","id":5050994,"avatar_url":"https://avatars1.githubusercontent.com/u/5050994?v=4","gravatar_id":"","url":"https://api.github.com/users/gMan1990","html_url":"https://github.com/gMan1990","followers_url":"https://api.github.com/users/gMan1990/followers","following_url":"https://api.github.com/users/gMan1990/following{/other_user}","gists_url":"https://api.github.com/users/gMan1990/gists{/gist_id}","starred_url":"https://api.github.com/users/gMan1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gMan1990/subscriptions","organizations_url":"https://api.github.com/users/gMan1990/orgs","repos_url":"https://api.github.com/users/gMan1990/repos","events_url":"https://api.github.com/users/gMan1990/events{/privacy}","received_events_url":"https://api.github.com/users/gMan1990/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-20T19:18:54Z","updated_at":"2017-10-04T18:21:19Z","closed_at":null,"author_association":"NONE","body":"OS: Windows 7 Professional with Service Pack 1 Build 7601 x64 zh-cn\r\n\r\n**the right result with 'utf-8' encode output**\r\n![image](https://cloud.githubusercontent.com/assets/5050994/20468154/7a537f42-afce-11e6-8c1e-7f4be7efcaa0.png)\r\n\r\n**but run it on Windows cmd.exe:**\r\n![image](https://cloud.githubusercontent.com/assets/5050994/20468204/15338228-afcf-11e6-8897-8ea4cf7aa2a3.png)\r\n**use \"chcp 65001\" also don't fixed**\r\n![image](https://cloud.githubusercontent.com/assets/5050994/20468182/de61d2d6-afce-11e6-8064-e36d9e457734.png)\r\n"},"comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments/334245633","html_url":"https://github.com/checkstyle/checkstyle/issues/3569#issuecomment-334245633","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3569","id":334245633,"user":{"login":"nobodxbodon","id":392497,"avatar_url":"https://avatars1.githubusercontent.com/u/392497?v=4","gravatar_id":"","url":"https://api.github.com/users/nobodxbodon","html_url":"https://github.com/nobodxbodon","followers_url":"https://api.github.com/users/nobodxbodon/followers","following_url":"https://api.github.com/users/nobodxbodon/following{/other_user}","gists_url":"https://api.github.com/users/nobodxbodon/gists{/gist_id}","starred_url":"https://api.github.com/users/nobodxbodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nobodxbodon/subscriptions","organizations_url":"https://api.github.com/users/nobodxbodon/orgs","repos_url":"https://api.github.com/users/nobodxbodon/repos","events_url":"https://api.github.com/users/nobodxbodon/events{/privacy}","received_events_url":"https://api.github.com/users/nobodxbodon/received_events","type":"User","site_admin":false},"created_at":"2017-10-04T18:21:19Z","updated_at":"2017-10-04T18:21:19Z","author_association":"NONE","body":"I just saw the referenced solution and the solution of changing chcp and font. Still, may I ask why UTF8 instead of Charset.defaultCharset() is set in SteamWriter [here](https://github.com/checkstyle/checkstyle/blob/master/src/main/java/com/puppycrawl/tools/checkstyle/DefaultLogger.java#L126)? \r\n\r\nWhen printing the message [here](https://github.com/checkstyle/checkstyle/blob/master/src/main/java/com/puppycrawl/tools/checkstyle/DefaultLogger.java#L206), the strings are [encoded using](http://docs.oracle.com/javase/7/docs/api/java/io/PrintWriter.html#print(java.lang.String)) `platform's default character encoding` again. Thus it seems reasonable to use default charset in the beginning?"}}
{"actor":{"display_login":"nobodxbodon"}}