Re: NSStrings for NSURL URLWithString
Re: NSStrings for NSURL URLWithString
- Subject: Re: NSStrings for NSURL URLWithString
- From: "Louis C. Sacha" <email@hidden>
- Date: Tue, 4 May 2004 19:25:43 -0700
Hello...
My mistake... I forgot that CoreFoundation uses different enum values
for the string encoding, so NSUTF8StringEncoding !=
kCFStringEncodingUTF8 ...
The CF equivalents are listed in the CFString documentation:
NSUTF8StringEncoding would need to be kCFStringEncodingUTF8
NSASCIIStringEncoding would need to be kCFStringEncodingASCII
...
That should work a bit better :)
Louis
Thanks for the help Louis. I used
CFURLCreateStringByAddingPercentEscapes because I want to keep my
app 10.2 compatible. This converts the "^" to "0E", unfortunately,
the URL data returned when using this string is incorrect.
~Ian
_______________________________________________
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.