NetBeans is an excellent open source integrated development environment that can be used for the development of languages such as java,c/c++,php. It is also an extensible development platform that can be used by plugins to extend the functionality that is not available in the official version. Since the acquisition of Oracle, the open source killer, the development has been slow, 7.0 until now released. NetBeans has a very retarded place, when opening a file can not automatically recognize the file encoding, more mentally, found that the coding error garbled, can not directly change the encoding. For example, the default setting is to open a UTF-8 encoded file that will appear garbled.
If you want NetBeans to decode the file with UTF-8, you need to modify the configuration file as follows:
1. Locate the ETC folder in your NetBeans installation directory, such as C:\Program Files\netbeans 7.3.1\etc\netbeans.conf
2. Open netbeans.conf with Notepad
3. Find Netbeans_default_options This sentence, preceded by no sign #, in the sixth line of the file
4. Add a space at the back and add-j-dfile.encoding=utf-8
Modified Sixth Act: netbeans_default_options= "-j-client-j-xss2m-j-xms32m-j-xx:permsize=32m-j-xx:maxpermsize=200m- J-dapple.laf.usescreenmenubar=true-j-dapple.awt.graphics.usequartz=true-j-dsun.java2d.noddraw=true- J-dfile.encoding=utf-8 "so that NetBeans default encoding becomes UTF-8,
This article is from the "Lamp Little Rookie" blog, please make sure to keep this source http://lamp68.blog.51cto.com/1946204/1794558
Modify NetBeans By default using UTF-8 encoding