作用域 当前类 同一package 子孙类 其他package
public √ √ √ √
protected √ √ √ ×
friendly √ √ × ×
private √ × × ×
Window=>Preferences=>General=>Content Types
看右测面板,在上面选中要改编码的文件,在下面Default encoding改为UTF-8
,然后点后面的Update按钮
public √ √ √ √
protected √ √ √ ×
friendly √ √ × ×
private √ × × ×
Window=>Preferences=>General=>Content Types
看右测面板,在上面选中要改编码的文件,在下面Default encoding改为UTF-8
,然后点后面的Update按钮