[Solved] how to Send & symbol in xml body to server


You can create a category on NSString and then encode few characters that you cant send directly… few are implemented below:

@implementation NSString (URLEncoding)

- (NSString *) stringByUrlEncoding{
    return (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(NULL,  (CFStringRef)self,  NULL,  (CFStringRef)@"!*'();:@&;=+$,/?%#[]",  kCFStringEncodingUTF8));
}

@end

solved how to Send & symbol in xml body to server