jsf+hibernate+sqlserver乱码问题已解决
lupingzhang
2007-06-13
在ProjectInfo.java中
修改get****方法为: public String getProjectname() { try { byte1 = projectname.getBytes("ISO-8859-1"); projectname = new String(byte1, "GB2312"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return projectname; } 就可以解决乱码. |