Hi Lloyd,
URLEncoding doesn't usually use entities. An Ampersand should be represented
as %38... You might also try & although I'm sure the problem is that
UrlDecode doesn't do the HtmlDecoding.
To fix this issue you can HtmlDecode after you're done UrlDecoding.
+++ Rick ---
--
Rick Strahl
West Wind Technologies
http://www.west-wind.com/ http://www.west-wind.com/weblog/ http://www.west-wind.com/wwThreads/
----------------------------------
Making waves on the Web
"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message
news:Z9********************@rogers.com...
I have a file name which will not decode correctly with the
Web.HttpUtility.UrlDecode routine.
The original file name is :
"G:/MyMusic/iTunes/iTunes%20Music/38%20Special/Rock%20&%20Roll%20Strateg
y/01%20Second%20Chance.mp3/"
The file name after the routine is:
"G:/MyMusic/iTunes/iTunes Music/38 Special/Rock & Roll Strategy/01
Second Chance.mp3/"
Note the "38 Special/Rock & Roll Strategy" which should be translated
as "38 Special/Rock & Roll Strategy"
Any ideas?
Lloyd Sheen