Help: What is the problem about response.sendredirect () in JSP? ? ?
I used the following sentence in JSP: response.sendredirect ("Test.jsp? Name = Name & PWD = 1111"); however, when getting parameters in Test.jsp, PWD can be obtained normally, and Name is garbled . Then I added it before this: response.setContentType ("text / html; charSet = GB2312"); I also tried some other solutions about Chinese garbled, all failed. Ask the expert guidance, thank you. solve:
String surl = "Test.jsp? Name = Name & PWD = 1111"; surl = new string (SURL.GETBYTES ("GBK"), "ISO8859_1"); response.sendredirect (SURL); Esponse is used when using SendRedirect to pass parameters. Sendredirect ("Test.jsp? Test =" X);