Hello group
I would like to make a link to a file, but how do I convert the file path to
a URL?
I have the file:
"G:\My Documents\Anders Kåre Olsen.txt"
If I use this path as a link in MSIE, it automatically converts it to:
file:///G:/My%20Documents/Anders%20K%E5re%20Olsen.txt
However Firefox does not do this conversion automatically, and I have a
requirement that says that the page must work in MSIE and Firefox. If I copy
the URL from MSIE to Firefox, it works fine, so I just need to do the
conversion programmatically.
I have tried to use the HttpUtility.UrlPathEncode, but this method
apparantly have problems with the danish characters like 'å'. It converts
last path of the above path to:
/My%20Documents/Anders%20K%c3%a5re%20Olsen.txt
And not even MSIE likes the conversion of 'å' to %c3%a5.
Regards
Anders Olsen