1、出现的问题
ç«è½¦ç«å广åºç«è½¦ç«å广åºç«è½¦ç«å广åº
2、解决办法(推荐)
let utf8Text = String(data: response.data! , encoding: .utf8)
3、解决办法
OC
const char *c = [string cStringUsingEncoding:NSISOLatin1StringEncoding];
NSString str = [[NSString alloc] initWithCString:c encoding:NSUTF8StringEncoding];
Swift
let c = value.cString(using: String.Encoding.isoLatin1)!
let s = String(cString: c, encoding: String.Encoding.utf8)