yuedaxia76 opened a new issue, #7098:
URL: https://github.com/apache/netbeans/issues/7098
### Apache NetBeans version
Apache NetBeans 21 release candidate
### What happened
System.out.println("中文a"); result is :中文a
in netbeans 21 it is:����a
Even after setting set -J-Dfile.encoding=UTF-8 ,-J-Dfile.encoding=GBK
,there are still garbled characters
### Language / Project Type / NetBeans Component
maven project
### How to reproduce
run 👍
public static void main(String[] argm) throws Exception {
System.out.println(System.getProperty("file.encoding"));
System.out.println(Charset.defaultCharset());
//System.setProperty("console.encoding", "UTF-8");
System.out.println("中文a");
System.setOut(new PrintStream(System.out,true,"UTF-8"));
System.out.println("中文a");
}
### Did this work correctly in an earlier version?
Apache NetBeans 20
### Operating System
windows 10
### JDK
test in 17、21
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists