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 %11. 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?showtopic%11449&st
%11?
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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]