[Import] Question about Chinese characters displayed on the JSP page (full)

Source: Internet
Author: User
1. Question about Chinese characters displayed on the JSP page
The first line of page is changed to: <% @ page contenttype = "text/html; charset = UTF-8" %>
Head Riga: <meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8">

2. Question about the Chinese version of the page form content submission
1) As long as % tomcat installation directory %/webapps \ JSP-examples \ WEB-INF \ Classes \ filters \ setcharacterencodingfilter. copy the class file to the filters directory under your webapp directory. If there is no filters directory, create one.

2) Add the following before your web. xml </Web-app>:
<Filter>
<Filter-Name> set character encoding </filter-Name>

ArticleSource: http://www.gins.cn/blog/article.asp? Id = 85

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.