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

在asp.net 中使用百度搜索代码,搜索汉字时提交到百度的是乱码
以下代码,如保存为htm,一切正常.
如果保存为.aspx,则数字正常,出现汉字就会提交乱码.  
<html>  
<head>   <meta   http-equiv= "Content-Type "   content= "text/html;charset=gb2312 "   />  
</head>   <body>  
<form   id= "form2 "   action= "http://www.baidu.com/baidu ">  
<table   border= "1 "   style= "font-size   :13px;   width:   814px; ">  
<tr   align   = "left "> <td   style= "width:800px;   height:   10px "   >  
<img   src= "http://img.baidu.com/img/logo-80px.gif "   alt= "Baidu "   align= "bottom "   border= "0 "   style= "width:   78px;   height:   17px "   />   <input   type= "text "   name= "word "   style= "width:   190px;   height:   14px "   />   <input   type= "submit "   value= "百度搜索 "   style= "width:   58px;   height:   20px "   />  
</form>  
</body>  
</html>  
急救呀

------解决方案--------------------
<globalization requestEncoding= "gb2312 " responseEncoding= "gb2312 "/>