Some characters cannot be mapped using "GBK" character encoding.

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--目录下的所有内容都改成UTF-8然后Update,就可以了)

posted @ 2013-01-04 11:57  kanrun  阅读(2006)  评论(0编辑  收藏  举报