Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Encoder url not opening in browser.

843840Feb 18 2010 — edited Feb 18 2010
dear all,

i have the link

When i try to open this link the corresponding file is not opening in browser

String file_str="http://www.testdomain.com/Test/TestFolder/12-Mar-2009/New Test File-Feb 09-Issue-6-v4-web.pdf"
after encodeing using
file_str = java.net.URLEncoder.encode(file_str);

output is :

http%3A%2F%2Fwww.testdomain.com%2FTest%2FTestFolder%2F12-Mar-2009%2FNew+Test+Fil
e-Feb+09-Issue-6-v4-web.pdf

but this is url not opening in browser (browser not decoding).

plz suggest.

thanx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2010
Added on Feb 18 2010
1 comment
121 views