How can I see how the browser percent-encoded my URL? (which is not visible on address bar)

后端 未结 2 1850
梦谈多话
梦谈多话 2020-12-12 04:05

When I paste a url containing some reserved characters to the address bar of IE, FF, Chrome, I see that it displays it as it is but as far as I understand in uses percent-en

相关标签:
2条回答
  • 2020-12-12 04:13

    Put the URL into an HTML page, ie,

        <a href="www.example.com?param=text with reserved characters">click</a>
    

    Load in each browser, right-click, copy URL, paste into a text app or the address bar.

    You can also use:

        <script>
        alert(encodeURIComponent('the text you want to see encoded'));
        </script>
    
    0 讨论(0)
  • 2020-12-12 04:17

    Copy the URL from the browser’s address bar and paste it into a text document.

    0 讨论(0)
提交回复
热议问题