求助:JSP中文字符转换问题? str = new String(str.getBytes("8859_1),"xxx"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我试过用str = new String(str.getBytes("8859_1),"cp850");也用过一些其它的字符集但总是不好使。 str = new String(str.getBytes(“8859_1”),"JISAutoDetect"); str = new String(str.getBytes("8859_1));=》》str = new String(str.getBytes("ISO8859_1)); 试一下下面这个方法: public String getStr(String str){ try{ String temp_p=str; byte[] temp_t=temp_p.getBytes("ISO8859-1"); String temp =new String(temp_t); return temp; } catch(Exception e){ return "null"; } } 100分求助!!!数据的批量提交 求救struts2的问题 涉及tomcat java mysql的问题 日期控件datepicker设置 JSP网站管理 求開源項目Rhino入门 散分,进者有分! 做了一个音乐站点,支持在线试听,请问能不能动态更新播放列表? 有关Bean的问题 jsp数据库验证用户名密码的一个小bug,求给个解决方法 请教:如何判断一个用户是否已经登录 关于WEB.XML文件的配置问题?
=》》str = new String(str.getBytes("ISO8859_1));
试一下下面这个方法: public String getStr(String str){ try{ String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO8859-1");
String temp =new String(temp_t);
return temp;
}
catch(Exception e){
return "null";
}
}