iOS开发 微信登录昵称乱码解决办法
2018-01-18 本文已影响148人
青秀山
解析得到nickName,然后转吗处理即可
const char *myChar = [nickName cStringUsingEncoding:NSISOLatin1StringEncoding];
nickName = [[NSString alloc] initWithCString:myChar encoding:NSUTF8StringEncoding];
解析得到nickName,然后转吗处理即可
const char *myChar = [nickName cStringUsingEncoding:NSISOLatin1StringEncoding];
nickName = [[NSString alloc] initWithCString:myChar encoding:NSUTF8StringEncoding];