I have a long NSString in which I m trying to replace special characters. Part of my string looks like this:
\"veau (c\\u00f4telette)\",\"veau (filet)\",\"ag
The backslash is an escape character, so if you want to specify the actual backslash character in a string literal, you need to use two backslashes.
NSString *new = [old stringByReplacingOccurrencesOfString: @"\\u0153" withString:@"oe"];
NSString is immutable, so the function generates a new string that you have to store:
NSString *new = [old stringByReplacingOccurrencesOfString:@"\u0153" withString:@"oe"];