At 2:03 PM -0500 12/30/04, Charles Yeomans wrote:
& is the HTML representation of Chr(38) = "&". I assume that
the file name is returned from a file:// URL whose text has been
encoded.
Hi Charles
Thanks! That's an important clue. I was focused on the text encoding
and the URL encoding and didn't even consider HTML encoding. :-)
I have no idea why iTunes passes the URL with HTML encoding.
The Apple docs say that CFURL will fail to create an object if the
string being passed is not well-formed (complies with RFC 2396). And
according to that RFC, Ampersand is a reserved character and should
be escaped with the %HH syntax.
Anyway if I decode the HTML encoding, and pass the path with the raw
ampersand it works OK. (But the spaces must be encoded in any case.)
Thanks for the great advice as always.
Happy Holidays,
Joe Huber
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|