【发布时间】:2014-02-07 02:28:14
【问题描述】:
我从服务器获得了一个值,并将其存储在 NSString 对象中。在该字符串中,“'”被替换为 \u00e2\u0080\u0099。我尝试使用replaceOccurencesOfString 来替换它。但它显示一个错误。在此我显示了我的代码和错误。
[mutstr_Description replaceOccurrencesOfString:@"\u00e2\u0080\u0099" withString:@"'" options:NSCaseInsensitiveSearch range:NSMakeRange(0, [mutstr_Description length])];
帮助解决这个问题。
【问题讨论】:
标签: ios objective-c xcode nsstring nsstringencoding