Eclipse sets the JSP template, default encoding

Source: Internet
Author: User
Eclipse sets the JSP template, default encoding

Window --> preferences --> Web --> JSP file --> editor --> template --> select create JSP file (HTML) in the left-side window and click Edit on the right side:

<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en">
<HTML>
<Head>
<% @ Page Language = "Java" contenttype = "text/html;Charset = GBK"
Pageencoding = "GBK"%>
<Meta http-equiv = "Content-Type" content = "text/html;Charset = GBK">
<Title> insert a title here </title>
</Head>
<Body>
$ {Cursor}
</Body>
</Html>

The encoding method is set in bold. GBK supports the best Chinese characters.

My eclipse is finished in Chinese. Just check in English.

Mainly set the encoding method, my window --> preferences --> Web --> JSP file: the encoding is empty, and the default encoding cannot be set. Therefore, set the template encoding method.

Http://hi.baidu.com/chaos822/item/04fefbead9f494c4eb34c9c7
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.