• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tidying NSURLs Containing XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tidying NSURLs Containing XML


  • Subject: Re: Tidying NSURLs Containing XML
  • From: "Ken Ferry" <email@hidden>
  • Date: Mon, 11 Aug 2008 20:11:45 -0700

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@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Tidying NSURLs Containing XML
      • From: Mike <email@hidden>
References: 
 >Tidying NSURLs Containing XML (From: Mike <email@hidden>)

  • Prev by Date: Re: Get specified window from nib
  • Next by Date: Re: best graphics API for 2D game
  • Previous by thread: Tidying NSURLs Containing XML
  • Next by thread: Re: Tidying NSURLs Containing XML
  • Index(es):
    • Date
    • Thread