Save could not be completed.MyEclipse國際化的問題解決

MyEclipse中新建一個jsp文件,如果輸入中文保存時就會提示錯誤: 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.

解決方法

1 應該使用eclipse的jinto插件編輯,會自動調用java的native2ascii把文件轉碼。

jinto插件下載:http://www.guh-software.de/jinto.html  

2 2 Eclipse-->Preferences...-->在“type filter text“欄中輸入”Content Types“查找,然後在選擇

右邊的Text下邊相應的文件後綴名,修改其編碼就可。
然後手動調用native2ascii編譯MessageBUndle_zh_CN.proterites文件

 

附: Eclipse下安裝Properties Editor

    在eclipse下"幫助"---"軟件更新"--"查找並安裝"--"搜索要安裝的新功能部件" ---"下一步"---"新建遠程站點"---

     填寫"名稱":Properties Editor;

     URL爲:http://propedit.sourceforge.jp/eclipse/updates/點完成,

      讓它自己下載插件..

     找到合適的Properties Editor安裝,這一個插件是減少轉化爲utf-8格式,在struts自動轉換的.

     這樣,eclipse插件就可以自己安裝一些。

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