eclipse保存文件出现save could not be completed. Try File Save As..

2023-05-16

 

确实可能就是老师给的java文件里面有中文,保存不了

而且中文还是乱码的。

 

下面摘自:https://blog.csdn.net/wsyzxss/article/details/84334015

save could not be completed. Try File Save As..

 

wsyzxss 2018-11-22 09:49:14 2108 收藏 3

分类专栏: java

Save could not be completed. Try File Save As.. if the problem persistsReasonSome characters cannot be mapped using"GBK"character encoding.Either change the encoding or remove the characters which are nosupported by the"GBK"character encoding

 

https://blog.csdn.net/h14525544/article/details/78711761

在MyEclipse下编程时,保存的时候,如果出现“Save could not be completed”错误:

MyEclipse的默认编译语言是"ISO-8859-1",这个语言不支持中文,所以如果编辑的程序含有中文而且编译语言是"ISO-8859-1“则就会出现这个问题!

解决方很简单,只要把默认编译语言改成支持中文的就OK了。

改法如下:

window --> Preferences --> General --> Content Types --> Text --> 选中出现保存问题的文件类型(如JSP),在底部出现 'Default edcodng:',改成UTF-8或GBK(反正支持中文即可),然后点击update。


--------------------- 
作者:h14525544 
来源:CSDN 
原文:https://blog.csdn.net/h14525544/article/details/78711761 
版权声明:本文为博主原创文章,转载请附上博文链接!

 

 

java文件选择类型为:

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

eclipse保存文件出现save could not be completed. Try File Save As.. 的相关文章

随机推荐