首次使用eclipse 出現中文亂碼的解決情況

首次使用eclipse 出現中文亂碼的解決情況

打開eclipse 選擇Windows->Prefercenes->General->Workspace 左下角的Text file encoding 默認選擇Default
在這裏插入圖片描述
我們要選擇Other:UTF-8
在這裏插入圖片描述 點擊Apply and Close 關閉