Modify NetBeans By default using UTF-8 encoding

Source: Internet
Author: User
Tags netbeans

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.