This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
1. Sorry for my confusion. You are right of course.
2. Dont quite understand what to do now.
Does it mean that I have to replace every blank
by the three chars %20 in my url string variable ?
Is there an API method for that ?
And how to URL-encode the other chars ?
I really dont understand what is written in URLEncoder doc.
I used the encode() method and it places the + in my url string.
The names were generated by me when I used a Web editor
to create web pages : I gave them file names with blanks and
other chars as the ! or ' for instance.
Since I now have many of the files I cant rename them all manually.
So I need a way to access them programmatically by using setPage()
method foer instance.
So you basically did it wrong in the first place and now you have to fix it up. So I would recommend a quick-and-dirty fix which replaces spaces by %20 and those other characters by whatever URL-encoding would replace them by.
And your Web editor didn't URL-encode your file names properly?