When I used java.net.RULDecoder to transcode Chinese and then passed it to the servlet, I found that the result was different from the expected code. Here is the code:
<a href="<%=basePath%>ShowNews?newsId=<%=hotnews.getId() %>&&keywords=<%=java.net.URLEncoder.encode("我去","UTF-8") %>"><%=hotnews.getTitle() %></a>
Use js's encodeURIComponent()
In Firefox and 360 Speed Browser, the address bar will be The encoding is automatically parsed, so Chinese will be displayed.