Skip to content

Instantly share code, notes, and snippets.

View davertay's full-sized avatar

David Taylor davertay

  • Bay Area, California
  • 08:50 (UTC -07:00)
View GitHub Profile
@davertay
davertay / gist:6518105
Last active December 22, 2015 19:09
Percent encoding URIs
// header
@interface NSString (EncodingExtension)
- (NSString *)stringByAddingPercentEscapesProperly;
@end
// implementation
#define URI_RESERVED_CHARACTERS @"!*'\"();:@&=+$,/?%#[]% "