It is well known that Eclipse is an international universal programming tool, sometimes we make a standard development source code project, need to modify the code, usually, the program default file encoding for GBK format, but the international common code for UTF-8, if the file is opened in the country without transcoding, If the use of foreign, so than people open must be garbled, because it does not support GBK coding, in order to better and international standards, recommend the UTF-8 format. The following small series brings you to eclipse's method of modifying the encoding format.
Coding Modification Method
1.window->preferences->general->content types menu to the right: Java Class file's default encoding modified to Utf-8;
2.window->preferences->general->content types menu to the right: the Java Source file under text is changed to Utf-8
3.general->workspace menu to the right: Text file encoding modified to Utf-8
By doing so, we can simply convert the encoding to the UTF-8 format.