MyEclipse中新建一個(gè)MessageBundle.properties文件,如果輸入中文保存時(shí)就會(huì)提示錯(cuò)誤:
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的默認(rèn)編碼方式為UTF-8,點(diǎn)擊Update就可以了!
posted on 2007-12-22 19:10
周銳 閱讀(2550)
評(píng)論(1) 編輯 收藏 所屬分類:
Eclipse