Eclipse學習系列 -- 安裝Properties Editor解決Properties亂碼問題

問題

在Struct2在讀取語言包文件language.properties屬性文件,如果文件中包含中文,會出現亂碼。雖然可以native2ascii進行解決,但是使用起來不方便,爲了解決這個問題,可以爲Eclipse安裝Properties Editor插件解決這個問題。 

 

Properties Edito官網地址:http://propedit.sourceforge.jp/index_en.html

Properties Edito安裝地址:http://propedit.sourceforge.jp/howto_eclipseplugin_install_en.html

 

環境

  Eclipse版本: 3.6

 

步驟

1  安裝Properties Editor插件

a  Help --> Install New Software 

b  在打開窗口“Work with”輸入:http://propedit.sourceforge.jp/eclipse/updates/ 回車

   選擇PropertiesEditor下的2個組件進行安裝即可。如果去掉“Contact all update sites during install to find required software” 可以跳過自檢。

   安裝過程中,可能有警告,別管它,點擊是就可以。

c  安裝完畢後,重啓Eclipse。

2  Properties文件和Properties Editor關聯

   如果安裝成功,則properties文件圖片會變成一個文本中有個綠色的P。

   如果還不能用Properites Editor打開,則文件右擊 -> Open With -> PropertiesEditor即可

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章