When you want to use a URL as a parameter of another URL, for example: When the user clicks on the button of the transaction, you find that you have not logged in to jump to the login page and take a parameter to record the user is the transaction page you wish to visit before logging in, so that you can return to the trading page once the login is complete. This time we need to put the URL of the transaction page as a parameter after the URL of the login page, because the parameter URL with a special symbol, the need to escape the character of the help to complete, which requires encode URL. Now a lot of popular Outh certification (for example, a third-party website can use QQ login) that QQ login itself it needs to know the login after the completion of the page (this page is QQ own).
Java-urlencoder.encode, when is it necessary?