解决NetBeans打开文件乱码的问题
来源:互联网 发布:腾讯游戏礼包软件 编辑:程序博客网 时间:2024/06/02 11:38
纯属转载,记录一下
NetBeans 的UTF-8乱码问题
一直在网上找这个问题的解决方法,可是都是只有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解码了~哈哈,不再有乱码咯~
这是原文:
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打开文件乱码的问题
- 解决CSV文件打开乱码的问题
- NetBeans 6.7 Vista 乱码问题的解决
- netbeans安装后,乱码问题的解决
- NetBeans:解决中文注释的乱码问题
- 解决VS2005打开js文件,中文都是乱码的问题
- 解决php导出csv文件打开乱码的问题
- 打开CHM文件内部中文乱码问题的解决
- ubuntu解决打开windows记事本txt文件乱码的问题
- 解决vim打开gb2312编码文件的乱码问题
- 打开CHM文件内部中文乱码问题的解决
- 解决linux 下打开windows的txt文件乱码问题
- 解决netbeans 安装乱码问题
- NetBeans的乱码问题
- Sublime Text3解决打开文件乱码问题
- 解决netbeans写jsp出现中文乱码的问题
- 解决Ubuntu下NetBeans中文乱码的问题
- 解决netbeans写jsp出现中文乱码的问题
- ogre工具集
- vim查找替换小结
- flex利用浏览器的后退前进按钮返回前后页面(BrowserManager)
- 内存对齐(摘自百度百科)
- 好博客怕忘了!记一下
- 解决NetBeans打开文件乱码的问题
- android的Menu使用
- Unix体验中心用户常见问题解答
- 关于允许匿名登陆的主机的简单入侵
- 宏开关
- 函数指针和指针函数
- printf使用
- 水晶报表拒绝访问
- SL数据绑定