MyEclipse中文保存時編碼錯誤提示

 

MyEclipse中新建一個MessageBundle.properties文件,如果輸入中文保存時就會提示錯誤:
Save could not be completed.
Reason:
some characters cannot be mapped using "ISO-8859-1" character encoding.
Either change the encoding or remove the characters which are not supported
by the "ISO-8859-1" character encoding.

解決辦法:
打開Eclipse的Preferences,選擇General->Content Types,然後修改右面的Text下的Java Properites File的默認編碼方式爲UTF-8,點擊Update就可以了!

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