修改Eclipse的默认charset 为utf-8

来源:互联网 发布:印度嫁妆 知乎 编辑:程序博客网 时间:2024/05/12 03:55
 
要在JVM启动的时候添加参数

-Dfile.encoding=utf-8

 
 
在eclipse里
就是在eclipse.ini文件里添加一行-Dfile.encoding=utf-8即可

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-Dfile.encoding=UTF-8
0 0
原创粉丝点击