I have an application through which I can connect to few external file systems. There is a hyper link in my application which will point to particular URL to open files from the file system.
When there are no special characters in the URL everything works just fine. I am able to open .doc, .html etc.
However, when the folder name contains special characters like #, the URL breaks and the displays only till the previous folder where it has encountered #.
If the URL is given as follows, I can view test1001.doc when I click on the hyperlink in application.
"d:/dir1/dir & dir2/new/Indu/Reports/test1001.doc";
If the URL is "d:/dir1/dir & dir2/new/Indu/#today/Reports/test1001.doc";
Then the display stops at displaying contents of folder "Indu".
Any idea why this happens and any solution? Have anybody else faced this issue before?
Since my application connects to external file system, I do not have control over what kind of file names will b used. I tried creating a folder with name #today, in windows machine, and I am able to create it.
Assuming that the # is unavoidable in the URL, is there a way to escape it, or any other work around for opening the files?
Any help will be highly appreciated.