Method Mr. LordofFatality does not work for files outside the project that you open through the "open file" menu.
To do this, find the netbeans.conf file in netbeans installation\etc\ , find the line netbeans_default_options and add the line -J-Dfile.encoding=UTF-8 .
If you did not find the "netbeans_default_options" option, add a whole new line that should read:
netbeans_default_options="-J-Dfile.encoding=UTF-8"
Accordingly, NetBeans 7.2 also works in version 7.4
PS The problem has existed for several years, and now it is very strange to have such software. Or I just skipped this option, if so, please let me know.
Good luck.
DimG Aug 15 '12 at 19:15 2012-08-15 19:15
source share