Problem is that I don't do the encoding. This is done by ITunes. All file
names which have an "&" have the same problem. I have had to put in a
special set of code just for this. Oh well I guess Apple remains a domain
unto themselves.
Lloyd Sheen
"Rick Strahl [MVP]" <rickstrahl@hotmail.com> wrote in message
news:uUy3pWhHFHA.720@TK2MSFTNGP10.phx.gbl...[color=blue]
> 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" <sqlguyremoveallofthis@tostopspamhotmail.com> wrote in
> message
> news:Z92dnQ6p6KAKTr7fRVn-ow@rogers.com...[color=green]
>> I have a file name which will not decode correctly with the
>> Web.HttpUtility.UrlDecode routine.
>>
>> The original file name is :
>>[/color]
> "G:/MyMusic/iTunes/iTunes%20Music/38%20Special/Rock%20&%20Roll%20Strateg
> y/01%20Second%20Chance.mp3/"[color=green]
>>
>> 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[/color]
> as[color=green]
>> "38 Special/Rock & Roll Strategy"
>>
>> Any ideas?
>>
>> Lloyd Sheen
>>
>>[/color]
>
>[/color]