• 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: Handling framework exceptions/errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling framework exceptions/errors?


  • Subject: Re: Handling framework exceptions/errors?
  • From: "Sherm Pendley" <email@hidden>
  • Date: Sun, 29 Jun 2008 16:30:34 -0400

On Sun, Jun 29, 2008 at 12:56 PM, David Troy <email@hidden> wrote:
>
> I have a situation where I am loading arbitray data from network-supplied
> URLs.  Sometimes the URLs contain Kanji unicode characters.  When they do,
> my HTTP loading mechanism (which is built around NSURL* frameworks) dies
> with an exception deep inside of CFURLGetString.

I suspect that NSURL doesn't support IDN. There's a list of RFCs that
NSURL supports listed at the top of its reference page - I don't see
RFC3490 "Internationalizing Domain Names in Applications" listed
there. Although, such URLs *do* work in Safari.

You may have to do your own "ToASCII" conversion before creating the
NSURL object, as described in the RFC:

    <http://www.ietf.org/rfc/rfc3490.txt>

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________

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

References: 
 >Handling framework exceptions/errors? (From: David Troy <email@hidden>)

  • Prev by Date: Re: Handling framework exceptions/errors?
  • Next by Date: Is this still true?
  • Previous by thread: Re: Handling framework exceptions/errors?
  • Next by thread: DnD in NSMatrix
  • Index(es):
    • Date
    • Thread