日期:2014-05-18  浏览次数:20827 次

请问怎么输出?ù???é??
如http://localhost:8080/bookstore/list.jsp?booktype=所有书籍
String   booktype= " ";
booktype=request.getParameter( "booktype ");
<%=booktype%> 就输出一堆问号什么的?
请问什么原因?

------解决方案--------------------
String title1 =new String(request.getParameter( "booktype ").getBytes( "ISO-8859-1 "), "gb2312 ");
String title2 =new String(request.getParameter( "booktype ").getBytes( "ISO-8859-1 "), "GBK ");
String title1 =new String(request.getParameter( "booktype ").getBytes( "ISO-8859-1 "), "utf-8 ");
或者
String title1 =new String(request.getParameter( "booktype ").getBytes( "gb2312 "), "utf-8 ");多试几次 看看那个可以取到值