Hi Mike, I'm not totally sure what you're asking, but you may want to look in the documentation for -[NSString stringByAddingPercentEscapesUsingEncoding:].
"Returns a representation of the receiver using a given encoding to determine the percent escapes necessary to convert the receiver into a legal URL string." -Ken On Mon, Aug 11, 2008 at 7:21 PM, Mike <[EMAIL PROTECTED]> wrote: > Is there a way to scan an entire XML doucment and NSURL to make sure it > contains only valid characters? > > I am thinking of the case of web services apps where large chunks of XML > data get appended to the end of the URL before it is sent to the server. > > Spaces for example don't conform to RFC 1808 and so the NSURL create > functions fail if one tries to create a URL with XML containing spaces at > the end. > > It would be nice to have a way to scan a long URL like that and > alert/replace when any illegal characters are found in it. > > Thanks, > > Mike > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com > > This email sent to [EMAIL PROTECTED] > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]