• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSStrings for NSURL URLWithString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >NSStrings for NSURL URLWithString (From: "Ian G. Gillespie" <email@hidden>)
 >Re: NSStrings for NSURL URLWithString (From: "Louis C. Sacha" <email@hidden>)
 >Re: NSStrings for NSURL URLWithString (From: "Ian G. Gillespie" <email@hidden>)

  • Prev by Date: Re: Injecting an NSResponder into the responder chain [solved]
  • Next by Date: Re: NSOpenPanel Oddity
  • Previous by thread: Re: NSStrings for NSURL URLWithString
  • Next by thread: The position of the insertion point in an NSTextView?
  • Index(es):
    • Date
    • Thread