Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Handling framework exceptions/errors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling framework exceptions/errors?



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.