1、Window ——> Preferences ——> General ——> Content Types:
右邊:(1)修改 Java Class File 的 Default encoding 爲 UTF-8。 ——> 單擊 Update 按鈕
(2)Text ——> 修改改 Java Source File 的 Default encoding 爲 UTF-8。 ——> 單擊 Update 按鈕
2、Window ——> Preferences ——> General ——> Workspace:
右邊:(1)Text file encoding 修改爲 UTF-8 。 ——> Apply ——> OK
如何修改Eclipse註釋中的@author所關聯的值:
Window ——> Preferences ——> Java ——> Code Style ——> Code Templates
——> 右邊 ——> Comments ——> Types 下修改。
右邊:(1)修改 Java Class File 的 Default encoding 爲 UTF-8。 ——> 單擊 Update 按鈕
(2)Text ——> 修改改 Java Source File 的 Default encoding 爲 UTF-8。 ——> 單擊 Update 按鈕
2、Window ——> Preferences ——> General ——> Workspace:
右邊:(1)Text file encoding 修改爲 UTF-8 。 ——> Apply ——> OK
如何修改Eclipse註釋中的@author所關聯的值:
Window ——> Preferences ——> Java ——> Code Style ——> Code Templates
——> 右邊 ——> Comments ——> Types 下修改。