Re: NSURL urlWithString return nil
Re: NSURL urlWithString return nil
- Subject: Re: NSURL urlWithString return nil
- From: Andy Lee <email@hidden>
- Date: Mon, 12 May 2008 19:24:01 -0400
Another possibility is that there is an invisible character in your
URL (perhaps due to copy-paste) which Safari is kind enough to escape
for you as . I would try deleting the "showtopic449" part and
retyping it by hand to make sure there is no hidden character between
"topic" and "449".
--Andy
On May 12, 2008, at 6:24 PM, Wayne Packard wrote:
On May 12, 2008, at 3:16 PM, Dex Morgan wrote:
Hello,
I've tried to create an NSURL with this URL:
http://forum.scmf.it/index.php?showtopic449&st
However it returns nil.
So I've tried to open it via Safari and the URL become
http://forum.scmf.it/index.php?showtopic449&st
?
Is there any way to translate these url into the correct way?
You might want to take a look at these methods in the NSString docs:
– stringByAddingPercentEscapesUsingEncoding:
– stringByReplacingPercentEscapesUsingEncoding:
wp
_______________________________________________
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
_______________________________________________
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