Java中文亂碼處理

1、處理get方法中文亂碼 方法1   String name = new String(request.getParameter("userName").getBytes("iso-8859-1")); 方法2   在tomcat的conf文件下server.xml中redirectPort="8443"位置後添加:URIencoding="GBK"; 2、處理post方法中文亂碼    
相關文章
相關標籤/搜索