I get a link from server to image has already been Encoding so it comes with %20 But sometimes I get a code include Hebrew characters, so I need to do Encoding agian , With the above code:
But after my Encoding i get in response that % 20 change to % 2520
static CFStringRef charsToEscape = CFSTR("&="); + (NSString *)escapeStringByAddingPercentEscapes: (NSString*) string { return [(NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)string, NULL, charsToEscape, CFStringConvertNSStringEncodingToEncoding(NSUTF8StringEncoding)) autorelease]; } i tried to add % to charsToEscape like this:
static CFStringRef charsToEscape = CFSTR("&=%");
but it did not help.
thanks