What function in php can decode data encoded in javascript function escape ()?

    1 answer 1

    urldecode

    Well, I gave you the direction:

    function utf8_urldecode($str) { $str = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($str)); return html_entity_decode($str,null,'UTF-8');; } 
    • Do not take. Here's how the stock looks:% u041F% u0440% u043E% u0435% u043A% u0442% u0434% u043E% u043C% u0430% u043D% u043E% u043C% u0435% u0440 - Happy_Cougar