我从服务器获得了一个值,并将其存储在 NSString 对象中。在该字符串中,“'”被替换为 \u00e2\u0080\u0099。我尝试使用replaceOccurencesOfString 来替换它。但它显示一个错误。在此我显示了我的代码和错误。
[mutstr_Description replaceOccurrencesOfString:@"\u00e2\u0080\u0099" withString:@"'" options:NSCaseInsensitiveSearch range:NSMakeRange(0, [mutstr_Description length])];
帮助解决这个问题。