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