How to convert %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 to Unicode in JS

This question already has an answer here:

  • Encode URL in JavaScript? 12 answers

  • Using decodeURIComponent()

    The decodeURIComponent() function decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine.

    var decodedStr = decodeURIComponent('%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82')
    console.log(decodedStr);
    链接地址: http://www.djcxy.com/p/26548.html

    上一篇: 如何设置上传

    下一篇: 如何将%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82转换为JS中的Unicode