踏上原路

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年7月21日

摘要: 当使用request.setCharacterEncoding(charset);时,只能解决表单方法为POST的中文乱码情况,而方法为GET的依然为乱码。解决GET乱码:[html] view plaincopyStringstr=request.getParameter("URL后面的变量名");byteb[]=str.getBytes("ISO-8859-1");str=newString(b); ==================================================解决request中文乱码的问题request.se 阅读全文
posted @ 2013-07-21 15:59 踏上原路 阅读(844) 评论(0) 推荐(0) 编辑