IFUnicodeURL is a category for NSURL which will allow it to support Internationalized domain names (Unicode) in URLs. It should work on iPhoneOS as well as MacOSX. At the time of this writing, iPhoneOS (at least) was known to not support URLs with non-ASCII characters in the hostname, so this workaround was required.
Usage is quite simple. Where you'd have normally used NSURL's URLWithString: (or initWithString:) methods, simply use the unicode versions added by the category. There is also a method to retrieve the URL as a string with the hostname converted back into Unicode:
NSURL *url = [NSURL URLWithUnicodeString:@"http://➡.ws/鞰齒"];
NSLog( @"The URL: %@", [url absoluteString] );
NSLog( @"The Unicode URL: %@", [url unicodeAbsoluteString] );
If you need this sort of thing, download it!
If this was handy, drop me a note on Twitter @BigZaphod or email.