cannot be mapped using "ISO-8859-1" character encoding

来源:互联网 发布:c语言小游戏.pdf 编辑:程序博客网 时间:2024/06/05 10:14

今天在修改JSP页面时,修改了部分要显示的字符为中文,然后保存提示问题如下:"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. "

提示框中有三个选项,选择保存为UTF-8。

为防止下次同样提示出现,可用如下办法解决: 

Window->Preferences->General->Content Types->Text->Jsp中设置Default encoding,把ISO-8859-1改为UTF-8,然后Update->OK。

0 0