• 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: Encoding NSString for URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encoding NSString for URL


  • Subject: Re: Encoding NSString for URL
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 12 Mar 2008 14:46:56 -0700

On 2008 Mar, 11, at 23:56, JanakiRam wrote:

CFURLCreateStringByAddingPercentEscapes...not
encoding special characters such as @#$%&* etc.

CFURLCreateStringByAddingPercentEscapes only encodes the characters mentioned in RFC 2396, which is: All non-ASCII characters plus these fourteen:


  ` # % ^ [ ] { } \ | " < > space

If you want @ * and $ to be encoded, pass them in the fourth argument.

Also, follow Jens' advice to make sure this is really what you want to do.

_______________________________________________

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


References: 
 >Encoding NSString for URL (From: JanakiRam <email@hidden>)

  • Prev by Date: Re: runtime error
  • Next by Date: How does -drawPageBorderWithSize: place pageHeader?
  • Previous by thread: Re: Encoding NSString for URL
  • Next by thread: What is [NSTextStorage fontSetChanged]?
  • Index(es):
    • Date
    • Thread