參考
https://coffee0127.github.io/blog/2016/08/15/eclipse-poperties/
安裝步驟
- Eclipse -> Help -> Install New Software…
- 點選 Add…
- Name: Properties Editor
Location: http://propedit.sourceforge.jp/eclipse/updates/ - 勾選
PropertiesEditor
PropertiesEditor_Asian_NLS
是否安裝外掛多國語言 (非必要) - 接著就是 Eclipse 安裝 plugin 時一些同意條款說明
- 安裝完成後,在 Eclipse -> Window -> Preferences 即可看見
Properties Editor
- 使用外掛提供的
PropertiesEditor
開啟 properties 檔案即可看見中文了 - 使用預設的編輯器看,卻仍舊是 Unicode
- 若不想將註解也轉為 Unicode,則在 Preferences 裡面勾選 Convert Option 的第二個選項註解不再轉為 Unicode
- 若整份 properties 都不需轉為 unicode 則勾選第一個選項。
Q:何時會用?
A:ZK i18n,由於 ZK i18n 讀取的 properties 檔案編碼為 UTF-8,因此不需額外轉為 Unicode