用BASE64编码解码或者URLENCODE URLDECODE 编码解码。不要直接传递 。

解决方案 »

  1.   

    和浏览器相关?会不会是html里charset的地方没指定对啊?
      

  2.   

    可是那个参数是用JS跳转过去的时候加的,能用PHP么?
    function searchpic(cdid,locations)
    {
    var subject=document.getElementById("subject").value;
    var sorts=document.getElementById("sort").value;
    var details=document.getElementById("details").value;
    var items=document.getElementById("items").value;
    if(locations=="yes")
    {
    var cdlocation=document.getElementById("location").value;
    }
    else
    {
    cdlocation="";
    }
    var locationshow=arguments[2]||1;
    var cmds=arguments[3]||1;
    //alert(locationshow);
    if(cmds==1)
    {
    if(locationshow==1)
    {
    window.location="<?=$_SERVER['PHP_SELF']?>?cdname="+cdid+"&subject="+subject+"&sorts="+sorts+"&details="+details+"&items="+items+"&locations="+cdlocation;
    }
    else
    {
    window.location="<?=$_SERVER['PHP_SELF']?>?cdname="+cdid+"&subject="+subject+"&sorts="+sorts+"&details="+details+"&items="+items;
    }
    }
    else
    {
    if(locationshow==1)
    {
    window.location="<?=$_SERVER['PHP_SELF']?>?cdname="+cdid+"&subject="+subject+"&sorts="+sorts+"&details="+details+"&items="+items+"&locations="+cdlocation+"&cmd=search";
    }
    else
    {
    window.location="<?=$_SERVER['PHP_SELF']?>?cdname="+cdid+"&subject="+subject+"&sorts="+sorts+"&details="+details+"&items="+items+'&cmd=search';
    }
    }
    }