Is there any garbled code on the reporting page title?

problem description

We report that the title occasionally has this kind of garbled code
(these are four garbled codes):
2019, using the re to the end of the line. (these are four pieces of garbled code):
2019, using the re to the end of the line,
", the number of the ring, the number of the cable, and the number of the car,"
",",

, I would like to know if you have a problem with MP80 / s / p / p >

clipboard.png

the environmental background of the problems and what methods you have tried

found that some ua was caused by Baidu crawler, so we filtered out the ua with spider string, but still found such a problem

related codes

/ / Please paste the code text below (do not replace the code with pictures)

title: encodeURIComponent(document.title)
Jun.24,2022

there is no source code, no crawling method, no samples, how can others debug for you, it all depends on guessing?


problem solved. python2/" rel=" nofollow noreferrer > read this blog

var semersList = [
                "",
                "asdsad",
                "2019-",
                "aksdklh~*(^&*^@%-sharp@)",
                "2019asdsaasd",
                ""
            ]
            mapObjArray = []
            semersList.forEach(function(elem) {
                console.log('-----')
                console.log(elem)
                console.log(EncodeUtf8(elem))
                console.log(decodeURIComponent(EncodeUtf8(elem)))
                console.log(decodeUtf8_in_Url(elem));
            });

            function EncodeUtf8(s1) {
                var s = escape(s1);
                var sa = s.split("%");
                var retV = "";
                if (sa[0] != "") {
                    retV = sa[0];
                }
                for (var i = 1; i < sa.length; iPP) {
                    if (sa[i].substring(0, 1) == "u") {
                        retV += Hex2Utf8(Str2Hex(sa[i].substring(1, 5)));
                    } else retV += "%" + sa[i];
                }
                return retV;
            }

            

            function decodeUtf8_in_Url(s1) {
                // escape"Visit W3School!" ->"Visit%20W3School%21"
                var s = escape(s1);
                var sa = s.split("%"); //sa[1]=u6211
                var retV = "";
                if (sa[0] != "") {
                    retV = sa[0];
                }
                for (var i = 1; i < sa.length; iPP) {
                    if (sa[i].substring(0, 1) == "u") {
                        retV += Hex2Utf8(Str2Hex(sa[i].substring(1, 5)));
                        if (sa[i].length >= 6) {
                            retV += sa[i].substring(5);
                        }
                    } else retV += "%" + sa[i];
                }
                return decodeURI(retV);   // URLutf-8URIURI
            }
            
            function Hex2Utf8(s) {
                var retS = "";
                var tempS = "";
                var ss = "";
                if (s.length == 16) {
                    tempS = "1110" + s.substring(0, 4);
                    tempS += "10" + s.substring(4, 10);
                    tempS += "10" + s.substring(10, 16);
                    var sss = "0123456789ABCDEF";
                    for (var i = 0; i < 3; iPP) {
                        retS += "%";
                        ss = tempS.substring(i * 8, (eval(i) + 1) * 8);
                        retS += sss.charAt(Dig2Dec(ss.substring(0, 4)));
                        retS += sss.charAt(Dig2Dec(ss.substring(4, 8)));
                    }
                    return retS;
                }
                return "";
            }
        
            
            function Str2Hex(s) {
                var c = "";
                var n;
                var ss = "0123456789ABCDEF";
                var digS = "";
                for (var i = 0; i < s.length; iPP) {
                    c = s.charAt(i);
                    n = ss.indexOf(c);
                    digS += Dec2Dig(eval(n));
                }
                
                return digS;
            }
            
            function Dec2Dig(n1) {
                var s = "";
                var n2 = 0;
                for (var i = 0; i < 4; iPP) {
                    n2 = Math.pow(2, 3 - i);
                    if (n1 >= n2) {
                        s += '1';
                        n1 = n1 - n2;
                    } else
                        s += '0';
                }
                return s;
            }
            
            function Dig2Dec(s) {
                var retV = 0;
                if (s.length == 4) {
                    for (var i = 0; i < 4; iPP) {
                        retV += eval(s.charAt(i)) * Math.pow(2, 3 - i);
                    }
                    return retV;
                }
                return -1;
            }
            
Menu