jsp中的中文亂碼問題解決方法
1.s=new String(s.getBytes(),"iso-8859-1");2.s=new String(s.getBytes(),"gb2312");
3.s=new String(s.getBytes("iso-8859-1"),"gb2312");
4.s=new String(s.getBytes("gb2312"),"iso-8859-1");
5.s=new String(s.getBytes("iso-8859-1"));
6.s=new String(s.getBytes("gb2312"));
posted on 2006-04-11 13:24 Rockysnail 閱讀(530) 評論(2) 編輯 收藏 所屬分類: Java