eclipse中保存*.java文件时,提示如下的错误,以及解决方法:
Java代码 收藏代码
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. (如果不行尝试修改Text--目录下的所有内容然后Update,我试过了一定行 的)
Java代码 收藏代码
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. (如果不行尝试修改Text--目录下的所有内容然后Update,我试过了一定行 的)