{"action":"created","issue":{"url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/479","repository_url":"https://api.github.com/repos/redhat-developer/vscode-java","labels_url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/479/comments","events_url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/479/events","html_url":"https://github.com/redhat-developer/vscode-java/issues/479","id":308260916,"number":479,"title":"chinese character don't display appropriate.","user":{"login":"xpf7622","id":2832199,"avatar_url":"https://avatars3.githubusercontent.com/u/2832199?v=4","gravatar_id":"","url":"https://api.github.com/users/xpf7622","html_url":"https://github.com/xpf7622","followers_url":"https://api.github.com/users/xpf7622/followers","following_url":"https://api.github.com/users/xpf7622/following{/other_user}","gists_url":"https://api.github.com/users/xpf7622/gists{/gist_id}","starred_url":"https://api.github.com/users/xpf7622/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpf7622/subscriptions","organizations_url":"https://api.github.com/users/xpf7622/orgs","repos_url":"https://api.github.com/users/xpf7622/repos","events_url":"https://api.github.com/users/xpf7622/events{/privacy}","received_events_url":"https://api.github.com/users/xpf7622/received_events","type":"User","site_admin":false},"labels":[{"id":423855029,"url":"https://api.github.com/repos/redhat-developer/vscode-java/labels/bug","name":"bug","color":"ee0701","default":true},{"id":735600236,"url":"https://api.github.com/repos/redhat-developer/vscode-java/labels/caused-by-extension","name":"caused-by-extension","color":"ededed","default":false},{"id":423855035,"url":"https://api.github.com/repos/redhat-developer/vscode-java/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-24T13:06:57Z","updated_at":"2018-04-12T02:15:11Z","closed_at":null,"author_association":"NONE","body":"Java code:\r\n// Hello world\r\npublic class HelloWorld {\r\n    public static void main(String[] args) {\r\n        System.out.println(\"Hello World! 汉字！\");\r\n    }\r\n}\r\n\r\noutput as follow:\r\n\r\nHello World! 姹夊瓧锛�\r\n\r\nbut java file have the default code utf-8. and  Debugger for java default also utf8, why the output is abnormal character!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/comments/380652810","html_url":"https://github.com/redhat-developer/vscode-java/issues/479#issuecomment-380652810","issue_url":"https://api.github.com/repos/redhat-developer/vscode-java/issues/479","id":380652810,"user":{"login":"testforstephen","id":14052197,"avatar_url":"https://avatars3.githubusercontent.com/u/14052197?v=4","gravatar_id":"","url":"https://api.github.com/users/testforstephen","html_url":"https://github.com/testforstephen","followers_url":"https://api.github.com/users/testforstephen/followers","following_url":"https://api.github.com/users/testforstephen/following{/other_user}","gists_url":"https://api.github.com/users/testforstephen/gists{/gist_id}","starred_url":"https://api.github.com/users/testforstephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testforstephen/subscriptions","organizations_url":"https://api.github.com/users/testforstephen/orgs","repos_url":"https://api.github.com/users/testforstephen/repos","events_url":"https://api.github.com/users/testforstephen/events{/privacy}","received_events_url":"https://api.github.com/users/testforstephen/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T02:15:11Z","updated_at":"2018-04-12T02:15:11Z","author_association":"COLLABORATOR","body":"Maven pom.xml file supports encoding config:\r\n```\r\n<project>\r\n  ...\r\n  <properties>\r\n    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r\n  </properties>\r\n  ...\r\n</project>\r\n```\r\n\r\nGradle supports setting Java Compiler Encoding:\r\n`compileJava.options.encoding = 'UTF-8'`\r\n\r\nWhen importing maven or gradle project into VSCode, java language server will translate the encoding info into a file `.settings/org.eclipse.core.resources.prefs` with content `encoding/<project>=XXX`. That's no problem.\r\n\r\nBut when opening simple java files (non eclipse project files) in VSCode, there is no way to override the compiler encoding.  How about adding a new User Settings like `java.file.encoding` to override the Java Compiler Encoding?\r\n\r\n\r\n"}}
{"actor":{"display_login":"testforstephen"}}