设置伪静态之后中文搜索乱码,报404错误

simple 2021-12-5 608


第二页开始就报404错误了,要修改哪个文件?怎么修改?

最新回复 (2)
  • simple 2021-12-5
    0 2
    百度找的代码好多,都不一样,不知道用哪个,要改哪个文件
    header("Content-Type:text/html;charset=utf-8");
    urlencode(urlencode("中文"))
    urldecode()
    string urlencode ( string $str )


    encodeURI(encodeURI("/?m=video_search*" + name + *1));
    URLDecoder.decode("chinese string","UTF-8") 

    $key = urlencode(mb_convert_encoding($_GET['key'], 'utf-8', 'gb2312'));
    $key = urldecode($key);

    HttpUtility.UrlEncode(query, System.Text.Encoding.GetEncoding("GB2312"));

    <meta http-equiv="Content-Type" content="text/html;charset=xxxx">        UTF-8        GB2312

    keyWord = new String(keyWord.getBytes("ISO-8859-1"),"utf-8");

    function getQueryString(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
                var r = window.location.search.substr(1).match(reg);
                if (r != null) return decodeURI(r[2]);
                return null;
            }
  • ainio 6月前
    0 3
    我是搜索也是出错
返回
发新帖