contentType="text/html;charset=gb2312"与你的系统的字符有关系
你不用String chn=new String(test.getBytes("8859_1"),"gb2312");
直接输出试试!