Re: Re-formatting NSString
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.