• 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: Re-formatting NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re-formatting NSString


  • Subject: Re: Re-formatting NSString
  • From: Jeremy Dronfield <email@hidden>
  • Date: Thu, 10 Jun 2004 20:15:55 +0100

Or, if you're on 10.3, there's -[NSString stringByAddingPercentEscapesUsingEncoding:].

Regards,
-Jeremy


On 10 Jun 2004, at 6:05 pm, David Reed wrote:

Glenn,

Take a look at the functions CFURLCreateStringByAddingPercentEscapes and CFURLCreateStringByReplacingPercentEscapes in CFURL.h. You can cast an NSString to CFStringRef and use these.

David.

On Thursday, Jun 10, 2004, at 12:28 US/Eastern, Glenn Zelniker wrote:

Sorry if this has been covered before...

Is there a simple function call or class to deal with converting strings with special characters (i.e., blanks, ampersands, etc.) to their equivalent escape sequences ( , &, etc.)? I need to deal with arbitrary filenames in an FTP application I'm writing and the remote host can't deal with the un-escaped filenames.

Glenn Zelniker
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Re-formatting NSString (From: David Reed <email@hidden>)

  • Prev by Date: Re: Rasterizing an NSString to a bitmap
  • Next by Date: Re: Probably a silly question but...
  • Previous by thread: Re: Re-formatting NSString
  • Next by thread: a question I am ashamed to ask
  • Index(es):
    • Date
    • Thread