How to set the default code for JSP pages in eclipse and myeclipse

Source: Internet
Author: User
Window --> preferences --> Web, and then click JSP files. In the encoding on the right, select the encoding method you want, such as UTF-8, in this way, you do not need to change the encoding when creating a JSP page.

 

 

Myeclipse encoding settings
My myeclipse installation after the default encoding is gb18030, people outside is generally recommended to use UTF-8. If garbled characters are found after the project is imported, the encoding settings are incorrect. Window> preferences> myeclipse> files and editors> JSP (modify encoding)

Global encoding settings: toolbar --> window --> preferences --> General --> workspace --> text file encoding to set the appropriate encoding.

Local encoding settings: Right-click the source code and choose --> General --> editors --> test editors --> spelling --> encoding. Here we set the encoding of a single file.

We recommend that you use global encoding settings.

 

 

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.