• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

special charecters in file name while downloading.

 
Khader mohammed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a jsp to download files.I get the "page cant be displayed error" if the file name contains the # charecter.

Can some one please suggest the solution.

Thanks in Advance.

Khader.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The octothorpe (pound sign) character is a reserved character within a URL (just like ? and &). Be sure that you are URL-encoding your URL components.
 
Khader mohammed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.
I tried with java.net.URLEncoder.encode() along with using charset as UTF-8.
But now nothing downloads.

Kindly suggest what are steps need to solve this problem.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Khader mohammed:
Kindly suggest what are steps need to solve this problem.


Please read this. Can't say much more without details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic