JSP page parameters appear in Chinese garbled solution _java

Source: Internet
Author: User

Many JSP programmers have encountered such a situation, JSP page pass parameters to the servlet, as long as the parameters have Chinese is garbled, and most are?????? Garbled, tried the online more common methods are not good, and finally added a word to solve the problem, here to share for everyone's reference.

1. Open the Tomcat installation directory

2. Find Conf folder

3. Open the Server.xml inside

4. Find

<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" 
redirectport= "8443"/>

This label

5. Add at the end of the tag

Uriencoding= "UTF-8"

This sentence

becomes as follows:

<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443" 
UTF-8 "/>

Solve the problem!

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.