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