How to set the default JSP file header encoding in eclipse

Source: Internet
Author: User

How to set the default JSP file header encoding in eclipse

When creating a new JSP page in Eclipse, the general default encoding is not utf-8, and our general project is unified using UTF-8 encoding, if you want to change a lot of trouble?

So we can only be so troublesome?

It's common to think that if you change the default settings.

I have set this up before:

Windows-----Preferences-----General-----Content Types-----Text-----JSP where default encoding is set (as shown in the procedure)

Unfortunately, this is still not the result I want to achieve.

Later, I used the following methods:

in windows------preferences--------the Web---------JSP files---------encoding there to set the default encoding .

Different versions of Eclipse or myeclipse may be different, and looking for more should still be found.

Ps:
Menu: Windows-preferences-web (list on the left of the popup box)-JSP Files-right edit area Encodingiso 10646/unicode (UTF-8) operation procedure see: The result really achieves this effect. The result is as follows: If you really want to be so convenient, you can try it.

How to set the default JSP file header encoding in eclipse

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.