eclispe: Modify all files in the default encoding is UTF-8

1、修改 workspace text file encoding

Click windows -> Preferences -> general -> Workspace, modified as shown in UTF-8 encoding

 

2, modify the resource file encoding

Click windows -> Preferences -> general -> Content Types, as shown below, click on Open Text

 

Select Java Source File, XML, Java Properties File, etc., enter the UTF-8 encoding input box below Default, and point to take effect Update

 

 In particular:
the Properties has been designated as the default ISO8859-1, so this must change. Otherwise, international and other written configuration, it is garbled ...

Reference Links: https://blog.csdn.net/zl1zl2zl3/article/details/83590064

 

Guess you like

Origin www.cnblogs.com/yongdaimi/p/12021132.html