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