realbasic-nug
[Top] [All Lists]

Re: Accepting Drop from iTunes

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Accepting Drop from iTunes
From: Joe Huber <joehuber at talasoft dot com>
Date: Thu, 30 Dec 2004 13:39:05 -0800
Cc:
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <p06200700bdf9fba4da9d at [10 dot 0 dot 1 dot 11]> <6F5C516E-5A95-11D9-BA8A-000A957CB4CC at desuetude dot com>
At 2:03 PM -0500 12/30/04, Charles Yeomans wrote:
&#038; 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>

<Prev in Thread] Current Thread [Next in Thread>