<form action="/searchresult.aspx" onsubmit="return search(this);">
                        <input class="search" maxlength="100" size="42" name="searchkey" />
                        <input style="display: none;" />
                        <input class="search_btn" type="submit" value="快速搜书" />
                        <br />
                        <input type="radio" checked="checked" value="综合" name="searchtype" />
                        综合
                        <input type="radio" value="书名" name="searchtype" />
                        书名
                        <input type="radio" value="作者" name="searchtype" />
                        作者
                        <input type="radio" value="主角" name="searchtype" />
                        主角
                        </form>
http://sosu.qidian.com/searchresult.aspx?searchkey=123&searchtype=%E7%BB%BC%E5%90%88由于编码不同 在本地复制以后搜不到。。我的编码是GBK。有办法吗?

解决方案 »

  1.   

    链接使用uft-8编码……这个是浏览器的功能……IE自动支持。FF好像也自动支持……
      

  2.   

    话说,只要是get方式传递,你先对url进行一次url编码,发送之后,问题都不大
      

  3.   

    utf-8 连接乱码问题一直搞得很多人头晕脑涨,当然开发中最好的方法是不要传带有中文参数值如果人传呢最好是在 服务器 tomcat 或其它的容器加上URIEncoding="UTF-8" tomcat是在 bin\server.xml  <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443" URIEncoding="UTF-8" />
    你的情况是改成GBK