Set jsp pages in MyEclipse as default UTF-8 encoding, myeclipseutf-8

Source: Internet
Author: User

Set the jsp page in MyEclipse to default UTF-8 encoding (convert), myeclipseutf-8

Http://www.cnblogs.com/xdp-gacl/p/3496161.html

Create a Jsp page in MyEclispe with the default code "ISO-8859-1", as shown in:

In this encoding, writing Chinese characters cannot save the Jsp page. The following error message is displayed:

Therefore, you can set the default UTF-8 encoding for Jsp. The specific steps are as follows:

Start MyEclipse and click window ---> preferences on the menu.

In the displayed dialog box, click MyEclise ---> Files and Editors ---> JSP, as shown in:

The JSP encoding settings panel is displayed, as shown in:

In the Encoding drop-down box, select the UTF-8 Encoding, as shown in:

So JSP default encoding is set to UTF-8, after the new page, the page of the encoding is used by default UTF-8.

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.