关于eclipse的编码统一设置为UTF-8的方法
eclipse是一个比较好用的工具,但是想要很好的使用就需要先对eclipse进行一些设置。
- 工作空间的设置: 打开eclipse,在导航栏中点击Window --> Preferences --> General(左侧栏)–> Workspace --> Text file encoding(右侧栏),选中other,设置成UTF-8;
- 文件编码的设置(新建的jsp、xml等): 同样的,在导航栏中点击Window --> Preferences --> General(左侧栏)–> Content Types --> Content Types(右侧栏),点击里面的Text以及其所包含的子文件(一定要一个一个看过去,有些是设置成ISO8859-1,这个看个人,可改可不改吧,我是全都改了),在右侧栏最下面的Default encoding:后面的文本框中输入UTF-8,并点击文本框后面的Update,全部修改完成后点击Apply and Close;
- 文件编码的设置(新建的jsp、xml等): 同样的,在导航栏中点击Window --> Preferences --> General(左侧栏)–> Editors --> Text Editors --> Spelling --> Spelling(右侧栏) --> Encoding ,选中Default(UTF-8)。
- 执行计划视图(不怎么明白是做什么的): 在导航栏中点击Window --> Preferences --> Data Management(左侧栏)–> SQL Development --> Execution Plan View Options --> Export encoding(右侧栏)选中Other,并设置为UTF-8,点击Apply。
这样编码就全部设为UTF-8了。