标题
    
    
        [java/jsp] jsp中关于request.getParameter中文的乱码问题
    
 
    
 	 
       
    
    clq
    
    
    
		
        浏览(0) + 
        2008-11-17 09:51:01 发表
        
编辑
         
        
        
        
        关键字: 
        
 
        
        
        
        
                
         jsp中关于request.getParameter中文的乱码问题
<%@ page contentType="text/html;charset=gbk" %> 
 
 <%
     request.setCharacterEncoding("GBK");//设置编码格式为中文
  String title = request.getParameter("title");
  out.print(title);
 %>
 
        
        
        
        		
		        
                
                
     
    
 
	
	
     
    
       
    
    clq
    
    
    
    
    
    		    
    
          
              
    	下面这样也可以,不过要注意提交方法为 post.
<%@page contentType="text/html; charset=GBK"%>
jsp_test1
JBuilder Generated JSP
    
    
     
 
	 
	
    NEWBT官方QQ群1: 276678893
    可求档连环画,漫画;询问文本处理大师等软件使用技巧;求档softhub软件下载及使用技巧.
    但不可"开车",严禁国家敏感话题,不可求档涉及版权的文档软件.
    验证问题说明申请入群原因即可.