Eclipse中设置默认为UTF-8编码

一、设置eclipse默认工作空间编码:Window --> Properties --> General --> Workspace --> Text file encoding
Eclipse中设置默认为UTF-8编码

二、设置项目工程编码:鼠标右击项目工程 --> Properties --> Resource --> Text file encoding
Eclipse中设置默认为UTF-8编码


三、设置某个文件编码:鼠标右击某文件 --> Properties --> Resource --> Text file encoding
Eclipse中设置默认为UTF-8编码


四、设置某类型文件编码:Window --> Properties --> General -->Content Types
Eclipse中设置默认为UTF-8编码


五、设置创建html文件编码:Window --> Properties --> Web -->HTML Files
Eclipse中设置默认为UTF-8编码


六、设置创建
jsp文件编码:Window --> Properties --> Web -->JSP Files
Eclipse中设置默认为UTF-8编码