NetBeans prompts for error when opening contains Chinese files

Source: Internet
Author: User
Tags netbeans

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 "



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.