解决了
strSubj = request.getParameter("subj");
strSubj = new String(strSubj.getBytes("ISO8859-1"),"GB2312");
strComm = request.getParameter("comment");
strComm = new String(strComm.getBytes("ISO8859-1"),"GB2312"); 有其他方法解决吗?
strSubj = request.getParameter("subj");
strSubj = new String(strSubj.getBytes("ISO8859-1"),"GB2312");
strComm = request.getParameter("comment");
strComm = new String(strComm.getBytes("ISO8859-1"),"GB2312"); 有其他方法解决吗?
解决方案 »
- jquery 获取一些属性的问题
- ResultSet更新不了数据
- 请问如何用正则限制字符串的长度?
- 缓存技术!
- 请教如何自动下载网页内容,并写进数据库
- 一道题目
- 求助:想简化一下JTable的使用,却无法添加数据(有源码和错误信息)???!!!
- 请问高手,在cmp2.0中,finder和select方法有什么不同呀,它们一般分别在什么场所使用?(80分)
- 如何在java语言中实现String(yyyy-mm-dd)到Date类型的转化,急用!!!非常感谢!!!
- 如何解决JPasswordField和JTextField中的输入法问题
- 一个百思不得其解的异常问题
- ·····进门就送分!····· 如何运行一个包含多国语言的SQL语句
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;
}
}