*.properties屬性文件,如果文件中包含中文,會出現亂碼。為了解決這個問題,可以為Eclipse安裝Properties Editor插件解決這個問題。

步驟
1 安裝Properties Editor插件
a Help --> Install New Software
b 在打開窗口“Work with”輸入:http://propedit.sourceforge.jp/eclipse/updates/ 回車
選擇PropertiesEditor 組件進行安裝即可。如果去掉“Contact all update sites during install to find required software” 可以跳過自檢。
安裝過程中,可能有警告,別管它,點擊是就可以。
c 安裝完畢后,重啟Eclipse。
2 Properties文件和Properties Editor關聯
如果安裝成功,則properties文件圖片會變成一個文本中有個綠色的P。
如果還不能用Properites Editor打開,則文件右擊 -> Open With -> PropertiesEditor即可

