Saturday, March 16, 2013

NSURL Cannot Handle Unicode Strings

I was just reminded of this bug that Craig Hockenberry reported over four years ago. The regular method for creating a NSURL is overly strict, so I’ve long been creating them via a category method. I need to modify it to handle Unicode in the domain, too.

Update (2013-03-18): A -[NSURL isEqual:] bug from Tim Wood:

NSURL should compare the decoded paths, not the encoded paths so that the %5b vs %5B case difference doesn’t spuriously make these URLs seem different.

Comments RSS · Twitter

Leave a Comment