Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| +(NSString*)urlEscape:(NSString *)unencodedString { | |
| NSString *s = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, | |
| (CFStringRef)unencodedString, | |
| NULL, | |
| (CFStringRef)@"!*'\"();:@&=+$,/?%#[]% ", | |
| kCFStringEncodingUTF8); | |
| return [s autorelease]; // Due to the 'create rule' we own the above and must autorelease it | |
| } | |
| // Put a query string onto the end of a url |