eclipse中保存*.java文件时,提示如下的错误,以及解决方法:
Eclipse --> window --> Preferences --> General --> Content Types --> Text --> 单击 Java Properties File,在底部出现 'Default edcodng:',改成UTF-8,然后update.
- 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
Some characters cannot be mapped using "GBK" character encoding.
Either change the encoding or remove the characters which are not supported
by the "GBK" character encoding
Eclipse --> window --> Preferences --> General --> Content Types --> Text --> 单击 Java Properties File,在底部出现 'Default edcodng:',改成UTF-8,然后update.