• 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: David Reed <email@hidden>
  • Date: Thu, 10 Jun 2004 13:05:02 -0400

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.


  • Follow-Ups:
    • Re: Re-formatting NSString
      • From: Jeremy Dronfield <email@hidden>
References: 
 >Re-formatting NSString (From: Glenn Zelniker <email@hidden>)

  • Prev by Date: Re: Rasterizing an NSString to a bitmap
  • Next by Date: Re: two things (newbie)
  • Previous by thread: Re-formatting NSString
  • Next by thread: Re: Re-formatting NSString
  • Index(es):
    • Date
    • Thread