Im trying to understand the URLEncoder class.It says that URLs must be properly encoded in order for it to work for when attempting to access the resource. So A URL cant have any spaces in them. So does the URLEncoder class replaces those blank spaces with some sort of value? and if so, Which?
Also I see that you only are suppose to encode the data you add onto the URL, not the entire URL.
How could i encode the data that is entered by the user to add to the URL?
Heres an example:
String url = "https://www.sample.com/folders/v1/volumes?q="+search;