Especially for beginners, many times, the development of projects in Eclipse, does not consider the problem of coding format, Eclipse uses the default encoding is GBK, and once the project is completed or midway need to convert to UTF-8 encoding form, often appear a large number of Chinese garbled, This article explains how to implement the conversion of coded formats in a project that has been developed:
First download lifesting jar package, download address: Http://yunpan.cn/cdd7GCf2pwHJT (extract code: EFBE)
It is a coded conversion tool, placed in Eclipse's plugins folder, restarts Eclipse, and right-click on the project to show that the installation was successful.
The following transcoding operations, such as the Eclipse default GBK encoding used in previous projects, are now converted to UTF-8
On the project, right-click-->properties-->convet Setting-->add, add transcoding information as follows:
Now confirm that the current project encoding is not GBK, as shown in the figure, if not first modified to GBK (encoding may be transferred in the middle)
OK, now proceed to the transcoding, right key item-->lifesting tools-->setencoding, at this time eclipse right lower corner has the reaction, instantaneous, the transfer code completes;
Now confirm: Right key item-->properties-->resource, can see now the encoding way is UTF-8. Congratulations on your success.