Recently encountered a coding problem, there is a project is encoded with GBK, because to the project to the Linux, considering the universality, want to convert the project into UTF-8 encoding format, just start with UE, EditPlus turn, found the file content or can not be transferred, all is garbled, Later on the internet to find a very useful plug-in (Com.lifesting.tool.encoding_1.0.0.jar), using the following methods:
The first step is to copy the plugin Com.lifesting.tool.encoding_1.0.0.jar to the Eclipse/plugins directory, and if it is above eclipse3.5, place it in the Dropins directory and restart Eclipse.
The second step is to select an item, right-select Properties, then click Convert Setting to set the transcoding rules, as shown in this table has four columns, the file suffix, the file is currently encoded, the converted encoding, whether to convert the contents of the file.
The first three are good to understand, the last one depends on what the real code of your file is, and then decide whether or not to do the encoding conversion of the file content.
Third Step transcoding
On the project that has the transcoding rules set, right-select the project, a few folders or a few files (of course one), and then click Lifesting tools->set Encoding. The plugin will complete the transcoding work. If we select a project, the entire project will be converted, if the folder is selected, all files that satisfy the rule are converted under the folder, and if the file is selected, only the file is converted.
Share file to Transcode plugin (eclipse)