2013年12月27日
摘要: http://www.oschina.net/question/565065_67940 阅读全文
posted @ 2013-12-27 11:38 sophine 阅读(178) 评论(0) 推荐(0) 编辑
摘要: JAVA常见中文问题的解决方法http://www.java-cn.com/club/article-5876-1.html以下解决方案是笔者在日常生活中遇到的,希望能对你解决JAVA中文问题有所帮助。 1.在jsp页面首部加上 在servlet中使用httpServlerResponse.setContentTpye(“text/html; charset=GB2312”);可以避免一些中文问题 2.使用JDBC连接mysql数据库时,连接字符串写成如下形式可以避免一些中文问题: jdbc://mysql://hostname:port/DBname?user=username&pa 阅读全文
posted @ 2013-12-27 11:17 sophine 阅读(372) 评论(0) 推荐(0) 编辑