Sometimes when you open the properties file in MyEclipse or Eclipse, you will find that Chinese is garbled. This is because the current properties file encoding format does not support Chinese characters. When this happens, we can change the encoding format of the file in the following two ways. Method one can change the properties file encoding format for all items at once. Method Two can selectively make changes to some files as needed.
method One: Click Windows-preferences-content-text-java Properties File, and the pop-up window and the default encoding at the bottom right are GBK, Then click Update-ok to close the pop-up pane. Also, in the secondary window, if you select a different file type in the upper right pane, you can make global changes to the encoding of other files.
method Two: right click on a need to change the properties file, select Properties, on the left side of the pop-up tree to select Resource, the bottom right of the text file encoding edit area click Other, Then select GBK (if not, you can enter directly), and then click Apply-ok Close the pop-up window.
Solving the problem of Chinese characters in the properties file of Myeclipse/eclipse