When NetBeans opens a Chinese file, it prompts for an error and finds it in NetBeans for a long time without finding how to set it up, and finally discovers that the configuration file to be modified in NetBeans can be resolved.
Edit C:\Program Files\netbeans 8.0.2\etc\netbeans.conf file
Modify the Netbeans_default_options property, add "-j-dfile.encoding=utf-8" in it, and then restart NetBeans.
Other than that
* If you want to use the NetBeans interface in English, you can add "-j-duser.language=en-j-duser.region=us" to the Netbeans_default_options
* If you want to make the interface NetBeans font (navigation tree) larger, you can add "--fontsize 15" in Netbeans_default_options
Here is the complete configuration of netbeans_default_options in my environment
Netbeans_default_options= "-j-client-j-xss2m-j-xms32m-j-xmx1024m-j-xx:permsize=32m- J-dapple.laf.usescreenmenubar=true-j-dapple.awt.graphics.usequartz=true-j-dsun.java2d.noddraw=true- J-dsun.java2d.dpiaware=true-j-dsun.zip.disablememorymapping=true-j-duser.language=en-j-duser.region=us- J-dfile.encoding=utf-8--fontsize 15 "