[Eclipse] set the source code file to utf8 in win

Source: Internet
Author: User

Currently, utf8 is generally used for project encoding, while the default source code file encoding for eclipse is the default one for the system, and the default encoding for win systems is GBK, so it is best to set it to utf8 in a unified manner, otherwiseProgramAnd cross-platform.

The first is to change the encoding of text format files. The basic source code format is changed here.

Menu Bar window-> perferences-> General-> Workplace set encoding to UTF-8

After the settings are complete, create a text format source code ss. py.

In its properties, you can view

The encoding change has taken effect.

The encoding settings in the JSP header file are also commonly used in perferences, as shown in

Create a new JSP page to view the effect

Basic settings can bring a lot of convenience to the development.

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.