John S John
John S John

Reputation: 155

Downloading File with with special characters in file name

I cannot download file using java if the url contains special characters.

eg:-http://something.com/something/this+this+this.html

http://something.com/something/this%20this%20this.html

the same happens if i download the file using google chrome...

I am developing a downloader in java.. please help me..

Upvotes: 0

Views: 1845

Answers (1)

Yogesh Prajapati
Yogesh Prajapati

Reputation: 4870

Use UrlEncoder.Encode(...) Java Methos , hope this will help you

and use decoder at client side

Upvotes: 1

Related Questions