jsp页面无法显示汉字怎么办? 在页面上点右键,选编码,在选简体中文.在jsp页面里设置:<%@ page contentType="text/html;charset=gb2312" %> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 转换 public static String getStr(String p_str){ try{ String temp_p=p_str; byte[] temp_t=temp_p.getBytes("ISO8859-1"); String temp=new String(temp_t); return temp; }catch(Exception e){ e.printStackTrace(); } return "null"; } 这个也可以的request.setCharacterEncoding("gb2312"); myeclipse里如何设置时间? 在线等答案!!!webservice xml解析时出现异常,如何解决? jsp页面传值丢失问题,很着急,请高手指点,谢谢!! 各位大侠,php中ip2long,long2ip的2个函数,在java中如何实现?100分 关于JSP的问题...... 下拉多选框的值如何取得的问题(简单之极) 数据库输入问题!!在线等 servlet怎样显示sql server数据库里的汉字 关于JS 点击浏览器刷新按钮的事件处理 request在两个网页之间传递数据库的键码到底怎么样才能实现,为什么我总是出错? 这句javascript是什么意思?谢谢
public static String getStr(String p_str){
try{
String temp_p=p_str;
byte[] temp_t=temp_p.getBytes("ISO8859-1");
String temp=new String(temp_t);
return temp;
}catch(Exception e){
e.printStackTrace();
}
return "null";
}
request.setCharacterEncoding("gb2312");