Replace occurences of NSString - iPhone

Posted by ncohen on Stack Overflow See other posts from Stack Overflow or by ncohen
Published on 2010-03-22T12:43:10Z Indexed on 2010/03/22 13:11 UTC
Read the original article Hit count: 268

Hi everyone, 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)","agneau (gigot)","agneau (c\u00f4telette)","b*\u0153*uf (hach\u00e9)","porc (hach\u00e9)"

I would like to replace all the \u0153 with "oe". I ve tried:

[response stringByReplacingOccurrencesOfString:@"\u0153" withString:@"oe"];

but it doesn't work.... I don't understand why!

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about nsstring