一直在网上找这个问题的解决方法,可是都是只有Netbenas5.5的解决方案,而且并没有根本的解决,今天上官方看了下,原来官方就有解决方法~哈哈~这招可以解决目前所有的版本,全部文件将用UTF-8解码.所以转移工作平台就更加简单咯~
这是原文:
For those who need to use international and multibyte characters, NetBeans can support UTF-8 editing. To enable it, go to your NetBeans installation directory and find the etc folder. There will be a file there called netbeans.conf .
This file keeps some configuration for NetBeans, including the default command line arguments. These are parameters that will be sent to a new starting Netbeans IDE.
Every argument lives inside a double-quoted variable called netbeans_default_options , and each one is separated from another by a space.
To enable UTF-8 in NetBeans, just place this parameter anywhere on the list of netbeans_default_options:-J-Dfile.encoding=UTF-8
中文解释一下:
1.找到你的Netbeans安装目录下的etc文件夹,如C:\Program Files\NetBeans 6.0 M9\etc
2.用记事本打开netbeans.conf
3.找到netbeans_default_options这一句(没带#号的,带#号的是注释)
4.在最后面加上一个空格,再加入-J-Dfile.encoding=UTF-8
如我现在的设置:
netbeans_default_options="-J-DAM_CONFIG_FILE=\"C:\Sun\AppServer\domains\domain1\config\AMConfig.properties\" -J-Dcom.sun.aas.installRoot=\"C:\Sun\AppServer\" -J-Xms128m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -J-Dapple.laf.useScreenMenuBar=true -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Dfile.encoding=UTF-8
"
这样,打开的文件所有都用UTF-8解码了~哈哈,不再有乱码咯~
分享到:
相关推荐
netbeans文件并不是用utf-8编码的,所以若果jsp见中文用utf--8编码的话,就会出现乱码,该图片就是解决这个问题的
Apache-NetBeans-11.2-bin-windows-x64.exeApache-NetBeans-11.2-bin-windows-x64.exeApache-NetBeans-11.2-bin-windows-x64.exeApache-NetBeans-11.2-bin-windows-x64.exeApache-NetBeans-11.2-bin-windows-x64....
Apache-NetBeans-12.4-bin-windows-x64.exe
netbeans-8.2-windows.exe 全能开发工具
netbeans-7.1.2-ml-javaee-windows.part2
由于公司外网限制。需要的朋友可以搜索NetBeans-7.4-JavaSE-Windows。一起两个分卷。(仅Java)
netbeans-6.9.1-ml-windows.part1
Apache-NetBeans-11.1-bin-windows-x64 WIDNOWS 64位系统安装文件,java编程IDE。
标题“netbeans-7.3-javase-windows”指的是NetBeans IDE的一个特定版本,即7.3版,专为Windows操作系统设计,用于Java SE(标准版)开发。NetBeans IDE是一款开源的集成开发环境(IDE),它支持多种编程语言,包括...
netbeans-6.9.1-ml-javase-windows 第一个包,分三个包
netbeans-7.4-javase-windows
netbeans-7.1-ml-php-windows
netbeans-7.1.2-ml-javaee-windows.part4
NetBeans 是开源软件开发集成环境,是一个开放框架,可扩展的开发平台,可以用于 Java 等语言的开发,适用于Windows系统。
Start the IDE at the command line C:\> netbeans-install-directory\bin\netbeans.exe. To start the IDE (Solaris OS or Linux): Type at the command prompt: /netbeans-install-directory/bin/netbeans To ...
org-netbeans-api-debugger-jpda.jar netbeans 文件
Apache NetBeans 12.1 was released on September 1, 2020.
netbeans-8.0-windows.part3
netbeans-8.0-windows.exenetbeans-8.0-windows.exenetbeans-8.0-windows.exenetbeans-8.0-windows.exenetbeans-8.0-windows.exenetbeans-8.0-windows.exenetbeans-8.0-windows.exenetbeans-8.0-windows.exenetbeans...
该压缩包中的"netbeans-8.0-linux.sh"文件是NetBeans IDE 8.0的Linux安装脚本。运行这个脚本,用户可以按照提示进行安装,步骤通常包括确认许可协议、选择安装目录和创建启动菜单条目等。安装完成后,Linux用户可以...