Project encoding format conversion (transcoding) __ code in Eclipse

Source: Internet
Author: User

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.