Re: NSData dataWithBytes:NoCopy:length free()'s the data (bug)
Re: NSData dataWithBytes:NoCopy:length free()'s the data (bug)
- Subject: Re: NSData dataWithBytes:NoCopy:length free()'s the data (bug)
- From: Jim Correia <email@hidden>
- Date: Thu, 31 Jan 2002 22:08:45 -0500
At 3:21 AM +0100 2/1/02, Allan Odgaard wrote:
On another subject, if I create an NSURL object where the URL string
contain [ or ], then the result is nil when I try to fetch data from
this URL. It works if I escape the characters ([ and ]), but I
don't think this should be necessary.
What don't you think should be necessary? That you pre-encode them,
or that they have to be encoded at all?
The need to be encoded at some point - RFC 1738 says so. They are
characterized as unsafe characters and must always be encoded. RFC
2396, son of 1738, relabels them as unwise, but still requires that
they be escaped.
Jim