I am downloading a webpage content but the address has special characters. For example, it contain word adiós in the myUrl. I am using the below code, but it is not successful. Do you have any suggestion? Thanks
String myUrl="http://www.somethingxxxxx.com/adiós";
URLConnection yc = new URL(myUrl).openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(
yc.getInputStream()));
You just need to encode your URL before you use it. To do this, you can try something like: