在Eclipse中强制修改文件编码,华丽丽滴

 .settings 文件夹,然后多了org.eclipse.core.resources.prefs 文件,打开看看,有形如:

#Fri Sep 19 17:11:08 CST 2014

eclipse.preferences.version=1

encoding//src/main/webapp/extjs/Ext.ux.ClipBoard.js=UTF-8 这样的,明白了。

这样就有规律了,有规律就代表可程序化,哥最喜欢了。

把工程放到Linux上,来条语句,

 for i in `find src/  -name "*.js"`;do echo encoding//$i=UTF-8;done 

encoding//src/main/webapp/test/testSearchField.js=UTF-8
encoding//src/main/webapp/test/testSQLEditor.js=UTF-8
encoding//src/main/webapp/test/testMain4ie6.js=UTF-8
encoding//src/main/webapp/test/testPanelBorderLayout.js=UTF-8
encoding//src/main/webapp/test/testComboBox.js=UTF-8
encoding//src/main/webapp/dbe/sqlswfeditor.js=UTF-8
encoding//src/main/webapp/dbe/tableinfowindow.js=UTF-8
encoding//src/main/webapp/dbe/dynamictablegridactions.js=UTF-8
encoding//src/main/webapp/dbe/tableinfoutils.js=UTF-8
encoding//src/main/webapp/dbe/dynamicgrid.js=UTF-8
encoding//src/main/webapp/dbe/dbe.js=UTF-8
encoding//src/main/webapp/dbe/welcomegrid.js=UTF-8
encoding//src/main/webapp/dbe/attributegrid.js=UTF-8
encoding//src/main/webapp/dbe/dbtreeactions.js=UTF-8
encoding//src/main/webapp/dbe/sqlqueryactions.js=UTF-8
encoding//src/main/webapp/dbe/clobpanel.js=UTF-8
encoding//src/main/webapp/dbe/actions.js=UTF-8
encoding//src/main/webapp/dbe/tablecolumngrid.js=UTF-8
encoding//src/main/webapp/dbe/tablecolumnpanel.js=UTF-8
encoding//src/main/webapp/dbe/dynamictablegrid.js=UTF-8
encoding//src/main/webapp/dbe/sqlquery.js=UTF-8
encoding//src/main/webapp/dbe/tableinfopanel.js=UTF-8
encoding//src/main/webapp/dbe/login.js=UTF-8
encoding//src/main/webapp/dbe/blobpanel.js=UTF-8
encoding//src/main/webapp/dbe/sqleditor.js=UTF-8
encoding//src/main/webapp/dbe/main.js=UTF-8
encoding//src/main/webapp/dbe/tablecolumnextendform.js=UTF-8
encoding//src/main/webapp/dbe/dataexportutils.js=UTF-8
encoding//src/main/webapp/dbe/dynamicgridutils.js=UTF-8
encoding//src/main/webapp/dbe/showlob.js=UTF-8
encoding//src/main/webapp/dbe/dynamicquerygrid.js=UTF-8
encoding//src/main/webapp/dbe/dbtree.js=UTF-8
encoding//src/main/webapp/dbe/dynamicgridactions.js=UTF-8
encoding//src/main/webapp/dbe/dataexport.js=UTF-8
encoding//src/main/webapp/dbe/sysconfig.js=UTF-8
encoding//src/main/webapp/swfupload/swfupload.js=UTF-8
encoding//src/main/webapp/extjs/ext-all.js=UTF-8
encoding//src/main/webapp/extjs/Ext.ux.grid.CheckColumn.js=UTF-8
encoding//src/main/webapp/extjs/Ext.ux.SwfUploader.js=UTF-8
encoding//src/main/webapp/extjs/Ext.ux.SearchField.js=UTF-8
encoding//src/main/webapp/extjs/my-ext.js=UTF-8
encoding//src/main/webapp/extjs/Ext.ux.ClipBoard.js=UTF-8
encoding//src/main/webapp/extjs/ext-base.js=UTF-8
encoding//src/main/webapp/extjs/Ext.ux.TabCloseMenu.js=UTF-8
encoding//src/main/webapp/extjs/ext-lang-zh_CN.js=UTF-8
encoding//src/main/webapp/sqleditor/AC_OETags.js=UTF-8
encoding//src/main/webapp/sqleditor/sqlEditor.js=UTF-8
encoding//src/main/resources/dbe_config.js=UTF-8

复制到org.eclipse.core.resources.prefs 文件中,点开其他js文件测试下,华丽丽的UTF-8了。

BY:程序猿

你可能感兴趣的:(eclipse,编码,强制)