日期:2014-05-20  浏览次数:20635 次

JSP 和 oracle 中文乱码
JSP   读取oracle数据库乱码怎么决绝~~
使用new   String(rs.getString( "name ").getBytes( "ISO8859-1 "))
还是乱码?

------解决方案--------------------
tomcat/weblogic??
if tomcat
out.println 版本?
------解决方案--------------------
new String( rs.getString( "name ").getBytes( "iso-8859-1 "), "GB2312 ")

------解决方案--------------------
Linux ?

linux最好使用GBK吧
如果是tomcat 最好使用过滤器
把该设置的编码的地方都设置上编码
如 server.xml中的 <Connector 中加入 URIEncoding= "GBK "
还有.jsp等...
搜索论坛 有很多关于 中文乱码的贴子