I am checking for the existence of a file in the XML backup of my iTunes library.
How do I change this string
E:\Entertainment\Music\Latin\100% Azucar The Best of Celia Cruz & La Sonora Matancera/08 Mi Soncito.mp3
to this
E:/Entertainment/Music/Latin/100%25%20Azucar%20%20The%20Best%20of%20Celia%20Cruz%20&%20La%20Sonora%20Matancera/08%20Mi%20Soncito.mp3
Changes:
- Space becomes %20
- Backslash becomes Forward-slash
- % (percentage sign) became %25
&became&. Which is kinda weird - I would expect it to become%26.%26when you URIEncode it. Perhaps you're thinking of HTMLEncoding.Uri, we may need to prefix with the "file:" protocol. In this case, it looks like we'd want to remove it after we finish our processing, or else we'd load it up and extract the pieces individually. I'm thinking the latter, actually.