Home > Java > javaTutorial > body text

Solve the problem of garbled Chinese characters in the parameters submitted by the get method:

巴扎黑
Release: 2017-06-26 09:18:06
Original
1825 people have browsed it

Solution to the problem of garbled Chinese characters in parameters submitted by the get method:

1 Find your tomcat directory

2 Under this directory \tomcat61 -32\tomcat61\conf

3 Find server.xml and open it with notepad (if not, go to the next one)

4 Find this line

5 Change it to this

6.servelet also needs to be changed

(In fact, URIEncoding is added This attribute, the value is utf-8)

Finally clear the server cache

<%request.setCharacterEncoding("utf-8"); %>

The above is the detailed content of Solve the problem of garbled Chinese characters in the parameters submitted by the get method:. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template