get方式提交数据的中文乱码有关问题

get方式提交数据的中文乱码问题

在使用netBeans开发和tomcat做服务器时解决get方式提交表单数据时的解决中文乱码的方法如下:

//a.jsp
<form action="b.jsp">
            <input type="text" name="username"/><input type="submit" value="提交"/>
</form>
//b.jsp
  <%String st=new String(request.getParameter("username").getBytes("ISO-8859-1"), "utf-8");%>