There are two cases: one is to set on the homepage to enable users to enter Chinese and accept it in the second page. The other is to pass the Chinese directly in the home page, and then accept it in the second page.
1. The first case: first.jsp
<% = waputil.Str2UTF ("Submit")%> 2. Second case: String sendmsg = "Chinese"; > go> <% = Waputil.Str2UTF ("Send")%> anchor> Receive page: string sendmsg = request.getParameter ("sendmsg"); if (sendmsg! = Null) sendmsg = java.net.urdecoder.decode (sendmsg); System.out.Println ("Sendmsg:" sendMSG); Result: Sendmsg: Chinese
2. Second case:
String sendmsg = "Chinese"; > go> <% = Waputil.Str2UTF ("Send")%> anchor>
Receive page: string sendmsg = request.getParameter ("sendmsg"); if (sendmsg! = Null) sendmsg = java.net.urdecoder.decode (sendmsg); System.out.Println ("Sendmsg:" sendMSG);
Result: Sendmsg: Chinese