What is encodeURIComponent?
What is encodeURIComponent? The encodeURIComponent() function encodes a URI by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two “surrogate” characters). Should I always use encodeURIComponent? 9 Answers. It depends on what […]