It stands to reason that this is not a simple question to a simple
But today it took me a full 40 minutes to get it
It must be recorded
windows---preference--General---Content Types----Text---Java Soure File
Then go down the line of sight, in the Default encoding, you need to first delete the contents, then click the Update button to write the UTF-8 or GBK
This is because, java source file is a higher priority than other all
If you are unsure Chinese encoding is utf-8 or gbk, then there must be such a step, otherwise, it can not always be successfully modified coding scheme;
mark !!
I hope we all can dream, take it!